Skip to main content

Module web

Module web 

Source

Modules§

interaction
messages

Structs§

ViewerHandle
Handle to a running viewer server, used for shutdown and status queries.
ViewerState
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 port first, then up to port + 10 if busy. Sends the actual bound port back on port_tx, then runs until shutdown_rx fires.

Type Aliases§

SharedViewerHandle
Thread-safe shared viewer state for MCP tools