FreakingGenius - v0.1.0
    Preparing search index...

    Type Alias BridgeMessage

    The full discriminated union of every message that may cross the bridge.

    Both BridgeClient (tutor) and ProtocolDecoder (edge) operate on this type. Narrow with message.type:

    switch (message.type) {
    case BridgeMessageType.STROKE_EVENT:
    handleStroke(message.stroke);
    break;
    // …
    }