tomaka / rouille

Web framework in Rust
Apache License 2.0
1.09k stars 105 forks source link

Support sending ws pings manually #181

Open CamJN opened 6 years ago

CamJN commented 6 years ago

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.

gwbres commented 2 years ago

@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