forward_event

Function forward_event 

Source
async fn forward_event(socket: &mut WebSocket, event: Value) -> bool
Expand description

Forward a queued event-bus value to the WebSocket. Returns true if the send failed (the caller should break the loop).

Two shapes arrive: already-RPC-wrapped values (from the WPS broker via EventBusBridge) are forwarded as-is; raw event-bus values (e.g. SetMeta’s waveobj:update) are wrapped as an RPC eventrecv so the frontend WshRouter routes them to handleWaveEvent → updateWaveObject. Shared by both the priority and background egress lanes.