In the case where you are talking to a browser, the browser-side has no API for sending pings to the server, but will usually send pongs in reply to pings it receives. It would be nice to be able to send a ping from rouille, for the sake of quickly detecting a broken connection when there is no other traffic needed.
@CamJN,
after reading the current code, it seems like a Ping is automatically answered by a Pong with the payload maintained identical. To me this is what the RFC specifies
In the case where you are talking to a browser, the browser-side has no API for sending pings to the server, but will usually send pongs in reply to pings it receives. It would be nice to be able to send a ping from rouille, for the sake of quickly detecting a broken connection when there is no other traffic needed.