Index
  • Creates a WebSocket connection.

    Parameters

    • url: string

      the URL

    • Optionaloptions: { protocols?: string | string[] }

      WebSocket options

    Returns Promise<WebSocketConnection>

  • Creates a WebTransport connection.

    Parameters

    • url: string

      the URL

    • Optionaloptions: { allowPooling?: boolean }

      WebTransport options

    Returns Promise<WebTransportConnection>

  • Get a socket connection

    Parameters

    • id: string

      The ID of the connection to get

    Returns SocketConnection | undefined

    The socket connection