WebSocketManager

export class WebSocketManager extends EventEmitter
export class WebSocketManager extends EventEmitter
The WebSocket manager for this client. This class forwards raw dispatch events, read more about it here https://discord.com/developers/docs/topics/gateway

Extends

EventEmitter
Readonly
client:Client
The client that instantiated this WebSocketManager
gateway:string | null
The gateway this manager uses
Readonly
ping:number
The average ping of all WebSocketShards
shards:Collection<number, WebSocketShard>
A collection of all shards this manager handles
status:Status
The current status of this WebSocketManager
on(event, listener):this
NameTypeOptionalDescription
eventGatewayDispatchEventsNoNone
listener(data: any, shardId: number) => voidNoNone
once(event, listener):this
NameTypeOptionalDescription
eventGatewayDispatchEventsNoNone
listener(data: any, shardId: number) => voidNoNone