Skip to content
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

Need ping/pong functionality #87

Open
cwangfr opened this issue Jun 19, 2022 · 4 comments
Open

Need ping/pong functionality #87

cwangfr opened this issue Jun 19, 2022 · 4 comments

Comments

@cwangfr
Copy link

cwangfr commented Jun 19, 2022

The environment I use is a mobile network, and the connection is always unstable. Is it possible to provide the function of client PING and server response to PONG, which is convenient for the client to do heartbeat detection.
Or is there already a similar function?
thank you very much.

@diogob
Copy link
Owner

diogob commented Jun 20, 2022

@cwangfr the server currently has no such feature. Just to ensure I understood correctly, you would like to initiate the ping test on the client side, is that correct?

@cwangfr
Copy link
Author

cwangfr commented Jun 20, 2022

@diogob yes, that's what i need

@jamesmstone
Copy link
Contributor

I wonder @cwangfr , could this be implemented in postgres? maybe using something like
https://github.com/diogob/pg-recorder to listen for a PING message, and respond with a PONG

@diogob
Copy link
Owner

diogob commented Aug 23, 2022

@jamesmstone @cwangfr that is a neat idea. It seems like the sort of functionality that would be well suited for a companion project. Perhaps we could even revamp the pg-recorder project and bake some useful functions in the project. I won't have much time to dedicate to this project but I'm more than happy to review PRs and give any pointers needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants