Skip to content

How does websockets handle ping-pong keepalive mechanism exactly with ping receivement? #1330

@mick-liu

Description

@mick-liu

Dear aaugustin,

I just have a simple question about the following description that you said "websockets takes care of responding to pings with pongs." But I want to know more how does it work? For example, if I have received a ping from our connected server, would it automatically send pong back or something? And how?

Thank you for the work of creating this amazing packages.
Sincerely,.

reference: https://websockets.readthedocs.io/en/stable/faq/common.html#how-do-i-respond-to-pings

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions