-
As per the docs at ( https://github.com/uNetworking/uWebSockets/blob/master/misc/READMORE.md ) a ping is supposed to happen automatically. However, I am not seeing any pings. Is there something I need to setup? Note: I am using uWebsockets.js v19.2.0 |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 19 replies
-
How are you checking for pings? Browser does not show pings. You will get a Pong event on the server |
Beta Was this translation helpful? Give feedback.
-
If you get pong event on the server then pings do work. The only way to get pong events on the server is if the client sent you a pong. The client will only send a pong if it got a ping. |
Beta Was this translation helpful? Give feedback.
-
Thank you.
…
On May 21, 2021 at 8:30 AM, <hst-m ***@***.***)> wrote:
>
>
> well since that ws lib is able to emit ping events down to clients I naturally thought that uWebsockets.js lib could do the same
>
>
I think you are very confused, both libraries send pings to client, this library can do it automatically and manually with ws.ping, but a browser client does not show pings as I tried to tell you many times and you did not listen, the ws library can work as client or server and it is able to show client pings because it is not limited like a browser
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub (#530 (reply in thread)), or unsubscribe (https://github.com/notifications/unsubscribe-auth/AABGQQQ35MFVESOLSZDMJDLTOZG65ANCNFSM45IMJCWA).
|
Beta Was this translation helpful? Give feedback.
How are you checking for pings? Browser does not show pings. You will get a Pong event on the server