Create a new event client.
Target protocol version
Communication format
Optional
options: Partial<EventClientOptions>Configuration options
Private
#connectPrivate
#heartbeatPrivate
#lastPrivate
#pongPrivate
#protocolPrivate
#setPrivate
#setPrivate
#socketPrivate
#transportReadonly
optionsReadonly
pingReadonly
stateStatic
prefixedLast error encountered by events client
Rest
...args: ArgumentMap<Events<T, EventProtocol<T>>>[Extract<T, keyof Events<T, EventProtocol<T>>>]Optional
context: anyOptional
fn: ((...args) => void)Rest
...args: ArgumentMap<Events<T, EventProtocol<T>>>[Extract<T, keyof Events<T, EventProtocol<T>>>]Optional
context: anyOptional
once: booleanAdd a listener for a given event.
Rest
...args: ArgumentMap<Events<T, EventProtocol<T>>>[Extract<T, keyof Events<T, EventProtocol<T>>>]Optional
context: anyAdd a one-time listener for a given event.
Rest
...args: ArgumentMap<Events<T, EventProtocol<T>>>[Extract<T, keyof Events<T, EventProtocol<T>>>]Optional
context: anyRemove all listeners, or those of the specified event.
Optional
event: keyof Events<T, EventProtocol<T>>Remove the listeners of a given event.
Optional
fn: ((...args) => void)Rest
...args: ArgumentMap<Events<T, EventProtocol<T>>>[Extract<T, keyof Events<T, EventProtocol<T>>>]Optional
context: anyOptional
once: booleanPrivate
setSet the current state
state
Generated using TypeDoc
Simple wrapper around the Revolt websocket service.