.connect()
→ void
webSocketShard.connect();Class
Extends EventEmitter
new WebSocketShard(options: WebSocketShardOptions)WebSocketShardOptions| Name | Type | Description |
|---|---|---|
| idread-only | number | |
| pingread-only | number | Last heartbeat ACK latency in milliseconds, or -1 before the first ACK. |
| sequenceread-only | number | null | Last known sequence number for this shard. |
| sessionread-only | string | null | Current session id, if identified/resumed. |
| statusread-only | number | Mapped readyState: 0 idle/closed, 1 connecting, 2 open, 3 closing. |
→ void
webSocketShard.connect();→ void
webSocketShard.destroy();payload: GatewaySendPayload → void
webSocketShard.send(payload);