Expand description
WebSocket Server Multiplexed WebSocket server for runtime communication, DevTools, hot reload, and agent streams
Structs§
- AppState
- Shared application state for the WebSocket server
Enums§
- Devtools
Command - DevTools command types (client → server).
- Devtools
Message - DevTool command types (bidirectional: client → server and server → client).
- WsMessage
- WebSocket message protocol between CLI dev server and connected clients.
Functions§
- create_
router - Create the WebSocket router with all endpoints
- start_
file_ watcher - Starts the file watcher and returns a broadcast sender for patches.
- start_
server - Start the WebSocket server with graceful shutdown.
Type Aliases§
- Dashboard
State - Shared dashboard state, populated by the dev server and file watcher.