Skip to main content

Module eventbus

Module eventbus 

Source
Expand description

Event bus: WebSocket event dispatching to connected clients. Port of Go’s pkg/eventbus/eventbus.go.

Structs§

EventBus
Global event bus for dispatching WebSocket events to connected clients.
EventBusBridge
Bridge from MPS Broker to EventBus. Wraps MuxEvents as RPC eventrecv messages and broadcasts them to all WS clients.
EventsDroppedEvent
The ws:eventsdropped event: srv dropped events for this window (its WebSocket lane was full), so what it shows may be stale. The window re-fetches what it shows.
LaneDrops
What one connection’s lanes have dropped because its consumer wasn’t keeping up.
WSEventType
WsReceivers
The pair of receivers handed to a WebSocket connection on registration. Terminal echo + interactive events arrive on priority; perf telemetry on background.

Enums§

Lane
Egress priority lane for a server→client event.

Constants§

WS_EVENT_MUX_OBJ_BATCHED_UPDATES
One WS frame carrying an ARRAY of MuxObjUpdates from a single atomic backend transition. Mirrored in frontend/app/store/mps-events.ts (WpsEvent.MuxObjBatchedUpdates) — the frontend applies the whole array in one Solid batch() flush. See broadcast_mux_obj_updates below.
WS_EVENT_RPC