Interface ClientOptions

Options for initializing a new client.

Hierarchy

  • ClientOptions

Properties

apiURL: string

The API URL to connect to. (default: https://api.revolt.chat)

debug: boolean

Enable debug mode (currently does nothing). (default: false)

exitOnTimeout?: boolean

If enabled, will throw an error if a Pong packet is not received by pingTimeout

heartbeat: number

If set to >0, send Ping packet every heartbeat seconds. (default: 30)

pingTimeout?: number

Maximum amount of time to wait (in seconds) for a Pong packet from the websocket after a Ping has been sent.

reconnect: boolean

Automatically reconnect the bot on disconnect. (default: true)