Member Junction
    Preparing search index...

    mj-livekit-whiteboard-surface — hosts the reusable @memberjunction/ng-whiteboard board inside the LiveKit room and syncs it across participants over the room's data channel (last-writer-wins board snapshots, debounced). The same board model (WhiteboardState) and agent tool API the conversations realtime stack uses — so improvements to the whiteboard benefit both surfaces, and an agent in a LiveKit realtime session can co-author the board (its tool calls are applied server-side and broadcast here).

    The component owns the WhiteboardState and is transport-agnostic: it emits BoardChanged (a JSON snapshot) when the local board changes, and the host wires that to controller.SendData(..., topic); inbound snapshots arrive via ApplyRemote. Echo is suppressed while a remote snapshot is applied.

    Implements

    • OnInit
    • OnDestroy
    Index

    Constructors

    Properties

    AgentName: string = 'Agent'

    The agent's display name (legend / chips / agent toast on the board).

    BoardChanged: EventEmitter<string> = ...

    Emits a JSON board snapshot to broadcast when the local board changes.

    BoardTitle: string = 'Whiteboard'

    The board title shown in the whiteboard header.

    SceneDelta: EventEmitter<string> = ...

    Forwards the whiteboard's debounced scene-delta (agent-perception feed).

    State: WhiteboardState = ...

    The shared board state engine. One per surface instance.

    SyncDebounceMs: number = 350

    Debounce (ms) before broadcasting a board snapshot after local changes.

    Methods

    • Applies a remote board snapshot received over the data channel, suppressing the echo that would otherwise re-broadcast it.

      Parameters

      • json: string

        The JSON board snapshot from another participant.

      Returns void

    • A callback method that is invoked immediately after the default change detector has checked the directive's data-bound properties for the first time, and before any of the view or content children have been checked. It is invoked only once when the directive is instantiated.

      Returns void