Not receiving payload in pong listener #827
Unanswered
sebovzeoueb
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Reading the source code of the app wrapper (https://github.com/uNetworking/uWebSockets.js/blob/master/src/AppWrapper.h#L215-L224), it looks like the javascript callback for the pong event is applied to only one argument (the ws object). The message is received on the C++ side but not forwarded to JS. |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
I'm trying to set up a simple system with pinging the client to measure latency, and I'm using ws.ping(buffer) to do so. The pong listener is triggering correctly, so the browser is ponging, but the payload is undefined. Any idea why this might be?
Beta Was this translation helpful? Give feedback.
All reactions