If we should auto connect (also used when creating Sockets). Set via the opts object
The currently connected sockets
All the namespaces currently controlled by this Manager, and the Sockets that we're using to communicate with them
The connect options that we used when creating this Manager
The state of the Manager. Either 'closed', 'opening', or 'open'
The URI that this manager is for (host + port), e.g. 'http://localhost:4000'
Emits 'event' with the given args
The event that we want to emit
Optional arguments to emit with the event
Emitter
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
Sets the current transport socket and opens our connection
An optional callback to call when our socket has either opened, or failed. It can take one optional parameter of type Error
This Manager
Gets the randomisation factor used in the exponential backoff jitter when reconnecting
Sets the randomisation factor used in the exponential backoff jitter when reconnecting
This Manager
Gets if we should reconnect automatically
Sets if we should reconnect automatically
True if we should reconnect automatically, false otherwise
This Manager
Gets the number of reconnection attempts we should try before giving up
Sets the number of reconnection attempts we should try before giving up
The number of attempts we should do before giving up
This Manager
Gets the delay in milliseconds between each reconnection attempt
Sets the delay in milliseconds between each reconnection attempt
The delay in milliseconds
This Manager
Gets the max reconnection delay in milliseconds between each reconnection attempt
Sets the max reconnection delay in milliseconds between each reconnection attempt
The max reconnection dleay in milliseconds
This Manager
Removes all event listeners on this object
This Emitter
Creates a new Socket for the given namespace
The namespace that this Socket is for
A new Socket, or if one has already been created for this namespace, an existing one
Gets the timeout in milliseconds for our connection attempts
Sets the timeout in milliseconds for our connection attempts
This Manager
Generated using TypeDoc
The Manager class handles all the Namespaces and Sockets that we're using