Socket#join

Socket#join(name:String[, fn:Function]):Socket

Adds the socket to the room, and fires optionally a callback fn with err signature (if any).

The socket is automatically a member of a room identified with its session id (see Socket#id).

The mechanics of joining rooms are handled by the Adapter that has been configured (see Server#adapter above), defaulting to socket.io-adapter.

doc_SocketIo
2016-09-25 12:15:45
Comments
Leave a Comment

Please login to continue.