I'm implementing a WebSocket node.js server which has browser websockets as clients.
I want to implement a ping/pong mechanism, where each 5 seconds the server sends a Ping frame to the client.
So my questions are:
what data payload should I use in the Ping frame?
what is the recommended interval to send the Ping frames?
can the browser initiate a ping request to my server, so I would need to implement a reply to a Ping event?