Skip to main content

Module ws_server

Module ws_server 

Source
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§

DevtoolsCommand
DevTools command types (client → server).
DevtoolsMessage
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§

DashboardState
Shared dashboard state, populated by the dev server and file watcher.