The current gateway latency, or null if unknown.
The authentication token.
Optionalcontext: anyConnects to the gateway.
Destroys the gateway connection.
Optionaloptions: GatewayDestroyOptionsCalls each of the listeners registered for a given event.
Return an array listing the events for which the emitter has registered listeners.
Return the number of listeners listening to a given event.
Return the listeners registered for a given event.
Optionalfn: (Optionalcontext: anyOptionalonce: booleanAdd a listener for a given event.
Optionalcontext: anyAdd a one-time listener for a given event.
Optionalcontext: anyRemove all listeners, or those of the specified event.
Optionalevent: keyof GatewayEventsMapRemove the listeners of a given event.
Optionalfn: (Optionalcontext: anyOptionalonce: booleanSends a message to the gateway.
The Gateway API client for foxochat.js