Platforms
Nick Jennings edited this page Oct 23, 2019
·
5 revisions
A platform implements a specific protocol
These are methods called from the client through 'commands'
-
subscribe
-- tells the platform that the session is interested in incoming data from this platform, receives "credentials" -
unsubscribe
-- stop listening for messages of given creds -
message
-- sends a message to the target, normally a room or a person -
presence
-- says "here I am" to the platform (optionally passing details such as status type & message)
These are special methods called by the listener
-
cleanup
-- called when a session is terminated. Should clean up all platform-local data associated with that session (such as close connections, stop polling, ...)