Interface ClientOptions

interface ClientOptions {
    reconnect?: boolean;
    reconnectAttempts?: number;
    reconnectTime?: number;
    token: string;
}

Properties

reconnect?: boolean

If the client should automatically reconnect when disconnected.

false
reconnectAttempts?: number

The amount of times to try to reconnect before giving up.

Infinity
reconnectTime?: number

The amount of time to wait before reconnecting in milliseconds.

2000
token: string

The token of the user to login with.