Sets the adapter v.
Sets the adapter v. Defaults to an instance of the Adapter that ships with socket.io which is memory based.
the given adapter
Returns the current adapter
Returns the current adapter
the current adapter
Closes socket.io server.
Closes socket.io server.
The optional callback function is passed to the server.close([callback]) method of the core net module and is called on error or when all connections are closed. The callback is expected to implement the common single argument err signature (if any).
the callback function
Emits an event to all connected clients.
Emits an event to all connected clients.
the event name
the event arguments
Initializes and retrieves the given Namespace by its pathname identifier namespace.
Initializes and retrieves the given Namespace by its pathname identifier namespace. If the namespace was already initialized it returns it immediately.
the given namespace
the Namespace
Sets the path v under which engine.io and the static files will be served.
Sets the path v under which engine.io and the static files will be served. Defaults to /socket.io.
the given path string
Returns the current path.
Returns the current path.
the current path.
If v is true the attached server (see Server#attach) will serve the client files.
If v is true the attached server (see Server#attach) will serve the client files. Defaults to true. This method has no effect after attach is called.
The default (/) namespace.
Registers a middleware, which is a function that gets executed for every incoming Packet and receives as parameter the packet and a function to optionally defer execution to the next registered middleware.
Registers a middleware, which is a function that gets executed for every incoming Packet and receives as parameter the packet and a function to optionally defer execution to the next registered middleware.
the function that gets executed for every incoming Packet
Socket.io Server