Conversation
…rt - works with live view websockets now
Mesa DescriptionTL;DRRefactored the WebSocket keepalive mechanism to use a dedicated Why we made these changesTo ensure the client live view heartbeat functions correctly and to standardize the WebSocket keepalive process using a more robust What changed?
|
There was a problem hiding this comment.
What Changed
This PR refactors the websocket keepalive mechanism to use a more standard ping/pong pattern. The server now responds to a CLIENT_HEARTBEAT event with a new SYSTEM_PONG event, which includes a server-side timestamp.
This change aligns the keepalive functionality with the client's live view heartbeat. The updates have been applied to both the current and legacy websocket handlers, ensuring consistent behavior. Logging for heartbeat-related events has also been enabled to improve observability.
Risks / Concerns
No risks identified. This is an excellent cleanup that simplifies and clarifies the websocket keepalive logic, making it more robust and easier to understand. The changes are well-contained and thoughtfully implemented.
8 files reviewed | 0 comments | Review on Mesa | Edit Reviewer Settings
system/pongworks with client live view heartbeat now ✅Next Steps :
onkernel/nekoKeepalive fix cleanup [neko])v3.0.6-v1.0.1onkernel/kernel-imagesKeepalive fix cleanup [kernel-images]). Notes :Dockerfilealready set to ghcr.io/onkernel/neko/base:3.0.6-v1.0.1onkernel/neko:v3.0.6-v1.0.1tag release and build completion, would work directly[ @Sayan- @rgarcia ]