Gateway

export interface Gateway
export interface Gateway
Gateway-like structure that can be used to interact with an actual WebSocket connection. You can provide a custom implementation, useful for running a message broker between your app and your gateway, or you can simply use the WebSocketManager.
getShardCount():Awaitable<number>
on(event, listener):this
NameTypeOptionalDescription
eventWebSocketShardEvents.DispatchNoNone
listener(...params: ManagerShardEventsMap[WebSocketShardEvents.Dispatch]) => Awaitable<void>NoNone
send(shardId, payload):Awaitable<void>
NameTypeOptionalDescription
shardIdnumberNoNone
payloadGatewaySendPayloadNoNone