Are we currently connected?
Are we currently disconnected?
The ID of the socket; matches the server ID and is set when we're connected, and cleared when we're disconnected
The Manager that's controller this socket
The namespace that this socket is for
Disconnects the socket manually
This Socket
Sets the compress flag.
If true
, compresses the sending data
this Socket
An override of the base emit. If the event is one of: connect connect_error connect_timeout connecting disconnect error reconnect reconnect_attempt reconnect_failed reconnect_error reconnecting ping pong then the event is emitted normally. Otherwise, if we're connected, the event is sent. Otherwise, it's buffered.
If the last argument is a function, then it will be called as an 'ack' when the response is received. The parameter(s) of the ack will be whatever data is returned from the event
The event that we're emitting
Optional arguments to send with the event
This Socket
Returns if we have listeners for a particular event
The event that we want to check if we've listeners for
True if we have listeners for this event, false otherwise
Returns all the callbacks for a particular event
The event that we're looking for the callbacks of
An array of callback Functions, or an empty array if we don't have any
Removes a listener for a particular type of event. This will either remove a specific listener, or all listeners for this type of event
The event that we want to remove the listener of
The function to remove, or null if we want to remove all functions
This Emitter
Adds a listener for a particular event. Calling multiple times will add multiple listeners
The event that we're listening for
The function to call when we get the event. Parameters depend on the event in question
This Emitter
Adds a listener for a particular event that will be invoked a single time before being automatically removed
The event that we're listening for
The function to call when we get the event. Parameters depend on the event in question
This Emitter
Opens our socket so that it connects. If the 'autoConnect' option for io is true (default), then this is called automatically when the Socket is created
Removes all event listeners on this object
This Emitter
Sends a 'message' event
Any optional arguments that we want to send
This Socket
Generated using TypeDoc
The Socket that we use to connect to a Namespace on the server