feat(python): migrate server to WebSocket & msgspec (Week 5)#35
Open
Chris00312 wants to merge 48 commits intocake-lab:dev/yiqinzhaofrom
Open
feat(python): migrate server to WebSocket & msgspec (Week 5)#35Chris00312 wants to merge 48 commits intocake-lab:dev/yiqinzhaofrom
Chris00312 wants to merge 48 commits intocake-lab:dev/yiqinzhaofrom
Conversation
(WIP) Adding the Xihe demo.
fix: fixing readme css.
feat(others): added links for docs.
fix(client): remove unused Kuafu file.
…ments for troubleshooting
Edit some documentation and added text field to configure IP
Client device modifications
Examples and restructure python server code
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 thewebsocketslibrary; handles WebSocket connections, SensorFlex packet parsing, and session management asynchronouslypython/arflow/models/session.py: Updated session model to support the new WebSocket-based architecturepython/pyproject.toml: Replaced gRPC dependencies withwebsocketsandmsgspecProtocol
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 & msgspecchore: translate Chinese comments to English