Skip to content

[Backend] feat(backend): payload an websocket modules - #680

Merged
JavierRibaldelRio merged 32 commits into
new-backendfrom
backend/websocket
Dec 4, 2026
Merged

JavierRibaldelRio merged 32 commits into
new-backendfrom
backend/websocket

Conversation

@pminmic

@pminmic pminmic commented Nov 25, 2026 •

Copy link
Copy Markdown

Features

websocket

  • Add a Tokio broker for state snapshots and live events. State subscriptions receive the current snapshot immediately, and telemetry updates are batched every 100 ms.
  • Add protection/update to publish the triggered protection ID, measured value, and timestamp. Close only the affected session when a client falls behind the event buffer.
  • Add a configurable heartbeat timeout, validate order/send against the ADJ before forwarding it, and queue logger commands.
  • Return FrontendDisconnected when the last frontend connection is lost. Forwarding this error through event is pending implementation/merge.

payload

  • Expose frontend message models through station::payload, independently of the WebSocket module.
  • Define payloads for telemetry, connections, orders, messages, protection events, and logger control.
  • Add Serde adapters for ADJ IDs, measurement values, and protection timestamps.
  • Document each topic’s JSON structure with templates and complete examples.

@pminmic
pminmic changed the base branch from develop to new-backend November 25, 2026 01:26
@pminmic
pminmic marked this pull request as ready for review November 25, 2026 19:18
@pminmic pminmic changed the title feat(backend, websocket): add websocket module to station Feat(backend): payload an websocket modules Nov 25, 2026
Comment thread backend/crates/station/src/websocket.rs Resolved
Comment thread backend/crates/station/src/websocket.rs Resolved
@JavierRibaldelRio JavierRibaldelRio changed the title Feat(backend): payload an websocket modules [Backend] feat(backend): payload an websocket modules Dec 4, 2026
@JavierRibaldelRio
JavierRibaldelRio merged commit 94ab5a1 into new-backend Dec 4, 2026
2 checks passed
@JavierRibaldelRio
JavierRibaldelRio deleted the backend/websocket branch December 4, 2026 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants