Users.Socket Class
Some replacements for Q.Socket methods, use these instead. They implement logic involving sockets, users, sessions, devices, and more. Everything goes through the "Users" namespace in socket.io
Methods
connect
(
static
-
nodeUrl
-
callback
Connects a socket, and stores it in the list of connected sockets. But it also sends a "Users.session" message upon socket connection, to tell connect the session id to the socket on the back end.
Events
onEvent
Returns Q.Event that occurs on some socket event coming from socket.io through the Users namespace
Event Payload:
-
name
Stringthe name of the event