SongGuess
    Preparing search index...
    WebSocket: {
        CLOSED: 3;
        CLOSING: 2;
        CONNECTING: 0;
        OPEN: 1;
        prototype: WebSocket;
        new (url: string | URL, protocols?: string | string[]): WebSocket;
    }

    The WebSocket object provides the API for creating and managing a WebSocket connection to a server, as well as for sending and receiving data on the connection.

    MDN Reference

    Type Declaration

      • new (url: string | URL, protocols?: string | string[]): WebSocket
      • Parameters

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

        Returns WebSocket

    • ReadonlyCLOSED: 3
    • ReadonlyCLOSING: 2
    • ReadonlyCONNECTING: 0
    • ReadonlyOPEN: 1
    • prototype: WebSocket