flackle-selfbot - v0.2.0
    Preparing search index...

    Interface GatewayOptions

    interface GatewayOptions {
        autoReconnect?: boolean;
        heartbeatIntervalMs?: number;
        heartbeatTimeoutMs?: number;
        maxReconnectAttempts?: number;
        origin?: string;
        userAgent?: string;
        getUser?: () => SelfUser | undefined;
    }
    Index
    autoReconnect?: boolean

    Reconnect automatically after an unexpected close.

    heartbeatIntervalMs?: number

    How often to send ping.

    heartbeatTimeoutMs?: number

    How long to wait for any frame after a ping before forcing a reconnect.

    maxReconnectAttempts?: number

    Consecutive reconnect attempts before giving up.

    origin?: string

    Origin header; Flackle's gateway rejects requests without a browser origin.

    userAgent?: string
    getUser?: () => SelfUser | undefined

    Supplies the current user so ready can include it.