-
Notifications
You must be signed in to change notification settings - Fork 4
Client
Recived some data from room. Passed arguments in callback:
data {Object} - data
session_id {string} - unique session id.
Recived members list from server. Passed arguments in callback:
list {array} - list of member data which sent by other members
session_id {string} - unique session id.
New member entered in room. Passed arguments in callback:
member_data {Object} - new member identification data
session_id {string} - unique session id.
Member in room disconnected. Passed arguments in callback:
member_data {Object} - disconnected member identification data
session_id {string} - unique session id.
Sends data in room. code - data to send session - room session id. All others room members will get "recive_code" event.
Sets main app ID and session ID
session_id {string} - session name member_data {Object} - client identification data
Connect to additional session. If passed member_data starts listing other joins and disconnects. Notifies other members about new member. Runs "on" event on other clients.
session_id {string} - session name
Disconnect from session. Stop listing room events.
If passed member_data: Notifies other members about disconnect. Runs "off" event on other clients.
Simple event emitter methods.
...