Modules§
Structs§
- Viewer
Handle - Handle to a running viewer server, used for shutdown and status queries.
- Viewer
State - Shared state for the viewer server
Functions§
- broadcast_
interaction - Broadcast an interaction entry to connected viewers
- broadcast_
updates - Called from the tick thread after tick_all() — broadcasts dirty screen updates
- new_
shared_ viewer_ handle - start_
viewer - Start the viewer HTTP/WebSocket server (blocking — run on dedicated thread).
Tries
portfirst, then up toport + 10if busy. Sends the actual bound port back onport_tx, then runs untilshutdown_rxfires.
Type Aliases§
- Shared
Viewer Handle - Thread-safe shared viewer state for MCP tools