Skip to content

feat(python): migrate server to WebSocket & msgspec (Week 5)#35

Open
Chris00312 wants to merge 48 commits intocake-lab:dev/yiqinzhaofrom
Chris00312:feature/week5-websocket-integration
Open

feat(python): migrate server to WebSocket & msgspec (Week 5)#35
Chris00312 wants to merge 48 commits intocake-lab:dev/yiqinzhaofrom
Chris00312:feature/week5-websocket-integration

Conversation

@Chris00312
Copy link

Summary

This PR replaces the gRPC/Protobuf communication layer with WebSocket + msgspec for the Python ARFlow server.

Changes

  • python/arflow/core.py: Rewrote server to use the websockets library; handles WebSocket connections, SensorFlex packet parsing, and session management asynchronously
  • python/arflow/models/session.py: Updated session model to support the new WebSocket-based architecture
  • python/pyproject.toml: Replaced gRPC dependencies with websockets and msgspec

Protocol

Uses the SensorFlex (SF) binary framing protocol over WebSocket with MessagePack serialization, replacing the legacy gRPC/Protobuf setup.

Commits

  • feat(python): migrate server to websockets & msgspec
  • chore: translate Chinese comments to English

legoeruro and others added 30 commits September 6, 2024 15:47
feat(others): added links for docs.
fix(client): remove unused Kuafu file.
Edit some documentation and added text field to configure IP
@Chris00312 Chris00312 changed the base branch from main to dev/yiqinzhao March 4, 2026 06:33
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.

4 participants