Hi,
I'm trying to implement a system where the client WebSocket sends a ping, and receives a pong. This wasn't working so I took a look through the source code. It appears the module supports only sending pings, and not responding to a ping with a pong.
I also noticed that if the client sends a message after enabling "push_stream_websocket_allow_publish", then the module will send back two messages after the client writes to it: an echo of the original message as well as a ping.
I'm thinking of implementing a PING/PING echo system simply by keeping "push_stream_websocket_allow_publish" enabled and writing messages from the client, and waiting for the module to echo it back.
Are there any caveats or side-effects I should be wary about by enabling "push_stream_websocket_allow_publish" ? Can this be abused by clients for other purposes than an echo?