A warning the client raised about its own connection, delivered on the same control channel. type is deliberately a value no server frame uses, so a host can never mistake one for the other.

interface WsClientWarning {
    code: string;
    message: string;
    status?: string;
    type: "client_warning";
    [k: string]: unknown;
}

Hierarchy (View Summary)

Indexable

  • [k: string]: unknown

Properties

code: string

AUTH_TIMEOUT | AUTH_FAILED | AUTH_UNACKNOWLEDGED | RECONNECT_ABANDONED | HEARTBEAT_DEAD | STREAM_RESYNC | SEQUENCE_GAP

message: string
status?: string
type: "client_warning"