Expand description
WebSocket protocol types shared between edge-agent and weave-server.
Wire format: JSON text frames. Each frame is a single ServerToEdge or
EdgeToServer value serialized as JSON. The runtime binds to a LAN IP
and performs no authentication.
Structs§
- Device
State Entry - Edge
Config - Complete config for one edge, pushed as a
ConfigFullframe. - Edge
Info - Identity + status for one connected (or previously-seen) edge.
- Feedback
Rule - Feedback rule: service state → device visual feedback.
- Glyph
- A named Nuimo LED glyph.
patternis a 9x9 ASCII grid compatible withnuimo::Glyph::from_str(*= LED on, anything else = off, rows separated by\n). - Mapping
- A device-to-service mapping. Mirrors the structure already used by
weave-server’s REST API.edge_idis new; all other fields retain their existing semantics. - Route
- One input-to-intent route inside a mapping.
- Service
State Entry - Target
Candidate - One entry in
Mapping::target_candidates. During selection mode the device displaysglyphand, on confirm, the mapping’sservice_targetis replaced withtarget. - UiSnapshot
- Initial full state sent on
/ws/uiconnect. Subsequent changes arrive asUiFramevariants.
Enums§
- Edge
ToServer - Frames sent from an
edge-agenttoweave-server. - PatchOp
- Server
ToEdge - Frames sent from
weave-serverto anedge-agent. - UiFrame
- Frames sent from
weave-serverto a Web UI client on/ws/ui.