Skip to content

Feat(backend): payload an websocket modules - #680

Open
pminmic wants to merge 15 commits into
new-backendfrom
backend/websocket
Open

pminmic wants to merge 15 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

This branch has not been deployed

No deployments
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.

2 participants