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.
Name | Type | Optional | Description |
---|---|---|---|
event | WebSocketShardEvents.Dispatch | No | None |
listener | (...params: ManagerShardEventsMap[WebSocketShardEvents.Dispatch]) => Awaitable<void> | No | None |
Name | Type | Optional | Description |
---|---|---|---|
shardId | number | No | None |
payload | GatewaySendPayload | No | None |