Server#attach

Server#attach(srv:http#Server, opts:Object):Server Attaches the Server to an engine.io instance on srv with the supplied opts (optionally).

Server#onconnection

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

Logging and Debugging

Socket.IO is now completely instrumented by a minimalistic yet tremendously powerful utility called debug by TJ Holowaychuk. Before 1.0, the Socket.IO server would default to logging everything out to the console. This turned out to be annoyingly verbose for many users (although extremely useful for others), so now we default to being completely silent by default. The basic idea is that each module used by Socket.IO provides different debugging scopes that give you insight into the internals. B

Server

Server Exposed by require('socket.io').

Server#sockets

Server#sockets:Namespace The default (/) namespace.

Server#of

Server#of(nsp:String):Namespace Initializes and retrieves the given Namespace by its pathname identifier nsp. If the namespace was already initialized it returns it right away.

Client#request

Client#request A getter proxy that returns the reference to the request that originated the engine.io connection. Useful for accessing request headers such as Cookie or User-Agent.

Manager#reconnection

Manager#reconnection(v:Boolean):Manager Sets the reconnection option, or returns it if no parameters are passed.

Client

Client The Client class represents an incoming transport (engine.io) connection. A Client can be associated with many multiplexed Socket that belong to different Namespaces.

Namespace#connected

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