Skip to main content

Module websocket

Module websocket 

Source
Expand description

WebSocket module for Varpulis CLI

Provides WebSocket server functionality for the VS Code extension and other clients.

Structs§

RelayMetrics
Metrics for the output event relay pipeline.
ServerState
Shared state for the WebSocket server
StreamInfo
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