uNetworking / uWebSockets.js

μWebSockets for Node.js back-ends :metal:
Apache License 2.0
7.86k stars 569 forks source link

Not receiving payload in pong listener #828

Closed sebovzeoueb closed 1 year ago

sebovzeoueb commented 1 year ago

Discussed in https://github.com/uNetworking/uWebSockets.js/discussions/827

Originally posted by **sebovzeoueb** November 8, 2022 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?