Socket#id
  • References/JavaScript/Socket.IO/Server

Socket#id:String A unique identifier for the socket session, that comes from the underlying Client.

2025-01-10 15:47:30
Socket#leave
  • References/JavaScript/Socket.IO/Server

Socket#leave(name:String[, fn:Function]):Socket Removes the socket from room, and fires optionally a callback fn with

2025-01-10 15:47:30
Socket#to
  • References/JavaScript/Socket.IO/Server

Socket#to(room:String):Socket

2025-01-10 15:47:30
Client
  • References/JavaScript/Socket.IO/Server

Client The Client class represents an incoming transport (engine.io) connection. A Client can be associated with many

2025-01-10 15:47:30
Socket#in
  • References/JavaScript/Socket.IO/Server

Socket#in(room:String):Socket Sets a modifier for a subsequent event emission that the event will only be broadcasted to sockets that

2025-01-10 15:47:30
Namespace#connected
  • References/JavaScript/Socket.IO/Server

Namespace#connected:Object Hash of Socket objects that are connected to this namespace indexed by id.

2025-01-10 15:47:30
Server#onconnection
  • References/JavaScript/Socket.IO/Server

Server#onconnection(socket:engine#Socket):Server Advanced use only. Creates a new socket.io client from the incoming engine.io

2025-01-10 15:47:30
Socket#join
  • References/JavaScript/Socket.IO/Server

Socket#join(name:String[, fn:Function]):Socket Adds the socket to the room, and fires optionally a callback fn with

2025-01-10 15:47:30
Namespace#use
  • References/JavaScript/Socket.IO/Server

Namespace#use(fn:Function):Namespace Registers a middleware, which is a function that gets executed for every incoming Socket and

2025-01-10 15:47:30
Socket#client
  • References/JavaScript/Socket.IO/Server

Socket#client:Client A reference to the underlying Client object.

2025-01-10 15:47:30