Interface CommonWebSocket

interface CommonWebSocket {
    new CommonWebSocket(
        url: string | URL,
        protocols?: string | string[],
    ): WebSocket;
    CLOSED: number;
    CLOSING: number;
    CONNECTING: number;
    OPEN: number;
}

Constructors

Properties

Constructors

  • Parameters

    • url: string | URL
    • Optionalprotocols: string | string[]

    Returns WebSocket

Properties

CLOSED: number
CLOSING: number
CONNECTING: number
OPEN: number