Search...

WebSocketShard

export declare class WebSocketShard extends AsyncEventEmitter<WebSocketShardEventsMap> 
export declare class WebSocketShard extends AsyncEventEmitter<WebSocketShardEventsMap> 

No summary provided.

Extends

AsyncEventEmitter<WebSocketShardEventsMap>

constructor(strategy, id)

Constructs a new instance of the WebSocketShard class
NameTypeOptionalDescription
strategyIContextFetchingStrategyNoNone
idnumberNoNone
Readonly

id

:

number

Readonly

connect()

:

Promise<void>

destroy(options?)

:

Promise<void>

NameTypeOptionalDescription
optionsWebSocketShardDestroyOptionsYesNone

send(payload)

:

Promise<void>

NameTypeOptionalDescription
payloadGatewaySendPayloadNoNone