WebSocket

WebSocket

new WebSocket()

Creates a new WebSocket client
Source:

Extends

  • EventEmitter

WebSocket

new WebSocket(options)

Parameters:
Name Type Description
options object An object with options
Properties
Name Type Attributes Description
heartbeatInterval number <optional>
The amount of seconds between each heartbeat. Must be below or equal to 50.
tokens array.<string> An array of bot tokens.
reconnect boolean <optional>
Tells the websocket to reconnect after a disconnect.
Source: