Create a new event client.
Target protocol version
Communication format
Optionaloptions: Partial<EventClientOptions>Configuration options
Protected Readonly[brandThis field doesn't actually exist, it's just a way to make TS properly infer the events from classes that extend AsyncEventEmitter
ReadonlyoptionsReadonlypingReadonlystateLast error encountered by events client
Connect to the websocket service.
WebSocket URI
Authentication token
Disconnect the websocket client.
Handle events intended for client before passing them along.
Event
Optionalevent: string | symbolStaticlistenerStaticonOptionaloptions: AbortableMethodsStaticonceOptionaloptions: AbortableMethods
Simple wrapper around the Revolt websocket service.