-
Notifications
You must be signed in to change notification settings - Fork 0
Add heartbeat to python client, and use a task manager to control background tasks #6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -34,6 +35,7 @@ | |||
|
|||
CROSIS_PREFIX_BYTES = b"\x00\x00" | |||
PID2_PREFIX_BYTES = b"\xff\xff" | |||
HEART_BEAT_INTERVAL_SECS = 2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should be configurable by the client/server
@@ -148,7 +165,7 @@ async def _handle_messages(self) -> None: | |||
handshake_request = ControlMessageHandshakeRequest( | |||
type="HANDSHAKE_REQ", | |||
protocolVersion="v1", | |||
instanceId=self._instance_id, | |||
instanceId=self._client_id, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hm we need both client and instance id
client is static, instance is random at startup
@zhenthebuilder Can this branch be deleted? |
Added heartbeat
Use taskmanager to manage task
added CI