Expand description
WebSocket module for Varpulis CLI
Provides WebSocket server functionality for the VS Code extension and other clients.
Structs§
- Relay
Metrics - Metrics for the output event relay pipeline.
- Server
State - Shared state for the WebSocket server
- Stream
Info - Information about a stream
Enums§
- WsMessage
- WebSocket message types for client-server communication
Functions§
- create_
output_ event_ message - Create an output event message from an Event
- forward_
output_ events_ to_ coordinator - Spawn a task that forwards output events from the worker’s broadcast channel to the coordinator’s internal endpoint for relaying to WebSocket clients.
- forward_
output_ events_ to_ websocket - Spawn an output event forwarder task
- handle_
connection - Handle a WebSocket connection
- handle_
coordinator_ connection - Handle a coordinator WebSocket connection (output events only, no engine).
- handle_
message - Handle a WebSocket message and return a response
- json_
to_ value - Convert a serde_json::Value to varpulis_core::Value
- value_
to_ json - Convert a varpulis_core::Value to serde_json::Value