Skip to content

fix(ws): include protocol on text message WebSocket payload (#279)#397

Merged
pskillen merged 3 commits into
mainfrom
ui-279/pskillen/unread-count-docs
Jun 4, 2026
Merged

fix(ws): include protocol on text message WebSocket payload (#279)#397
pskillen merged 3 commits into
mainfrom
ui-279/pskillen/unread-count-docs

Conversation

@pskillen
Copy link
Copy Markdown
Owner

@pskillen pskillen commented Jun 4, 2026

Summary

Adds protocol (meshtastic / meshcore) to TextMessageWSSerializer so WebSocket pushes match REST/OpenAPI and meshflow-ui can scope unread badges correctly.

Related: meshflow-ui#279 — UI PR will follow and should deploy together.

Testing performed

  • python -m pytest Meshflow/ws/tests/test_text_message_ws_serializer.py -v
  • black / isort / flake8 on ws/

Add text-messages feature hub and unread-count deep dive; note
TextMessageWSSerializer missing protocol field.
Add protocol to TextMessageWSSerializer matching REST labels.
Tests in ws/tests/test_text_message_ws_serializer.py.
Helps meshflow-ui infer MeshCore when protocol is missing on older payloads.
@pskillen pskillen merged commit 57c283e into main Jun 4, 2026
2 checks passed
@pskillen pskillen deleted the ui-279/pskillen/unread-count-docs branch June 4, 2026 14:15
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