Skip to content

Commit

Permalink
Mention application-level heartbeats.
Browse files Browse the repository at this point in the history
Fix #1330.
  • Loading branch information
aaugustin committed May 18, 2023
1 parent 03d62c9 commit 2845257
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion docs/faq/common.rst
Original file line number Diff line number Diff line change
Expand Up @@ -151,4 +151,11 @@ See :doc:`../topics/timeouts` for details.
How do I respond to pings?
--------------------------

Don't bother; websockets takes care of responding to pings with pongs.
If you are referring to Ping_ and Pong_ frames defined in the WebSocket
protocol, don't bother, because websockets handles them for you.

.. _Ping: https://www.rfc-editor.org/rfc/rfc6455.html#section-5.5.2
.. _Pong: https://www.rfc-editor.org/rfc/rfc6455.html#section-5.5.3

If you are connecting to a server that defines its own heartbeat at the
application level, then you need to build that logic into your application.

0 comments on commit 2845257

Please sign in to comment.