WebSocket: Auto ping/pong? #1998
Replies: 3 comments
-
The server will reply pong to a ping, but it doesn't do keep alive by
default.
Every case is different, sometimes you want keepalive on the client, and
sometimes on the server.
…On Mon, Oct 24, 2022, 18:44 Felipe Gasper ***@***.***> wrote:
Hello,
Does Mojo’s WebSocket implementation include automatic ping/pong?
i.e., if nothing is sent nor received for, say, 5 minutes, does Mojo
automatically send a ping frame and expect a pong in response? Or is that
something Mojo callers need to implement manually?
Thank you!
—
Reply to this email directly, view it on GitHub
<#1998>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFURPKTEXVJ634SNMGSIHA3WE2VEFANCNFSM6AAAAAARNDPGMU>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
FGasper
-
Thank you for clarifying. I guess if I send the ping manually, then I also have to check for the pong, ensure that the response matches, etc.? |
Beta Was this translation helpful? Give feedback.
0 replies
-
(Also, this is on the client.) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
Does Mojo’s WebSocket implementation include automatic ping/pong?
i.e., if nothing is sent nor received for, say, 5 minutes, does Mojo automatically send a ping frame and expect a pong in response? Or is that something Mojo callers need to implement manually?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions