WebSocketShard
declare class WebSocketShard extends AsyncEventEmitter<WebSocketShardEventsMap>
declare class WebSocketShard extends AsyncEventEmitter<WebSocketShardEventsMap>
No summary provided.
Extends
AsyncEventEmitter<WebSocketShardEventsMap>constructor(strategy, id)
Constructs a new instance of the
WebSocketShard
className | Type | Optional | Description |
---|---|---|---|
strategy | IContextFetchingStrategy | No | None |
id | number | No | None |
Readonly
connect()
:
Promise<void>
destroy(options?)
:
Promise<void>
Name | Type | Optional | Description |
---|---|---|---|
options | WebSocketShardDestroyOptions | Yes | None |
send(payload)
:
Promise<void>
Name | Type | Optional | Description |
---|---|---|---|
payload | GatewaySendPayload | No | None |