Server#path

Server#path(v:String):Server Sets the path v under which engine.io and the static files will be served. Defaults to /socket.io. If no arguments are supplied this method returns the current value.

Namespace

Namespace Represents a pool of sockets connected under a given scope identified by a pathname (eg: /chat). By default the client always connects to /. Events connection / connect. Fired upon a connection. Parameters: Socket the incoming socket.

IO#protocol

IO#protocol Socket.io protocol revision number this client works with.

IO#Emitter

IO#Emitter Reference to the Emitter constructor.

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).

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

Manager#reconnectionAttempts

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

Socket#id

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

Server

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

Namespace#name

Namespace#name:String The namespace identifier property.