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

When using websockets as a client, how to send a pong when receiving a ping? #1470

Closed
PengdaLiu opened this issue Jun 5, 2024 · 1 comment

Comments

@PengdaLiu
Copy link

PengdaLiu commented Jun 5, 2024

nevermind, found it implemented here: https://github.com/python-websockets/websockets/blob/main/src/websockets/protocol.py#L644

@aaugustin
Copy link
Member

In case someone lands on this question - official answer here: https://websockets.readthedocs.io/en/stable/faq/common.html#how-do-i-respond-to-pings

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

No branches or pull requests

2 participants