Skip to content

Conversation

@eunyoung14
Copy link
Member

Summary

  • Add SendPongResponse() method to handle explicit ping queries from server
  • Handle "ping" query in CommandRequestHandler with pong response including timestamp
  • Remove automatic ping on every message read (rely on explicit ping/pong instead)

Test plan

  • Verify server can send {"query": "ping"} and receive {"query": "pong", "timestamp": "..."}
  • Confirm WebSocket connection remains stable without automatic ping
  • Test plugin access to SendPongResponse() method

- Add SendPongResponse() method to handle explicit ping queries
- Handle "ping" query in CommandRequestHandler with pong response
- Remove automatic ping on every message read
Copilot AI review requested due to automatic review settings December 21, 2025 12:07
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refactors the WebSocket heartbeat mechanism by replacing automatic ping-on-read with an explicit ping/pong handler pattern. The server can now send explicit ping requests, and the runner will respond with timestamped pong responses.

  • Adds SendPongResponse() method to send pong responses with timestamps
  • Implements ping query handler in CommandRequestHandler to respond to server pings
  • Removes automatic ping sending after every message read to rely on explicit ping/pong instead

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

eunyoung14 and others added 2 commits December 21, 2025 21:10
…ility

- Support legacy servers that send ping as command instead of query
- Add cmd/alpamon/alpamon to gitignore
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 3 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@eunyoung14 eunyoung14 merged commit 7674332 into main Dec 21, 2025
11 checks passed
@eunyoung14 eunyoung14 deleted the feature/websocket-ping-pong-handler branch December 21, 2025 13:22
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