Interface CommonWebSocket

interface CommonWebSocket {
    new CommonWebSocketnew (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