我找不到任何关于如何在 javascript/NodeJS 中发送有关 WebSocket 连接的 PONG 响应的示例(返回到需要它的服务器 - 在发送 PING 请求之后)?
最佳答案
您很可能正在使用https://github.com/websockets/ws
自述文件说:
Pong messages are automatically sent in response to ping messages as required by the spec.
关于javascript - 在 javascript/NodeJS 中通过 WebSocket 发送 pong 帧?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56722619/