FreakingGenius - v0.1.0
    Preparing search index...

    Manages the real-time WebSocket connection from the tutor to the edge device.

    const client = new BridgeClient(config, sessionId);
    client.onStrokeReceived((s) => strokeGrouping.addStroke(s));
    client.onConnectionStatus((s) => console.log('Bridge:', s));
    await client.connect();
    await client.sendRenderCommand(command);
    Index

    Constructors

    Methods

    • Opens the WebSocket connection and starts the heartbeat timer.

      Returns Promise<void>

      Resolves once the connection is established and the capability report has been received from the edge device.

    • Gracefully closes the WebSocket and stops the heartbeat timer.

      Returns Promise<void>

      Resolves when the connection is fully closed.