@minecraft/server-net
    Preparing search index...

    Class WebSocketBeta

    Used to manage WebSocket connections.

    Index

    Methods

    Methods

    • Beta

      Parameters

      • uri: string

        URL to make connection to.

      Returns Promise<WebSocketClient>

      An awaitable promise that contains the WebSocket client that was connected.

      Attempts to connect a WebSocket client.

      This function can't be called in restricted-execution mode.