Interface ConnectionEvents

Events emitted by the WebSocket connection.

SteveTheHead

0xArmorer

2.0.0

interface ConnectionEvents {
    connect: (() => void);
    disconnect: ((reason: string) => void);
    error: ((error: Error) => void);
    quotaWarning: ((remaining: number) => void);
    rateLimited: ((retryAfter: number) => void);
    reconnect: ((attempt: number) => void);
}

Properties

connect: (() => void)
disconnect: ((reason: string) => void)
error: ((error: Error) => void)
quotaWarning: ((remaining: number) => void)
rateLimited: ((retryAfter: number) => void)
reconnect: ((attempt: number) => void)