dpallot / simple-websocket-server

A python based websocket server that is simple and easy to use.
950 stars 320 forks source link

Ping/Pong with TTL #67

Open soundstorm opened 6 years ago

soundstorm commented 6 years ago

Currently the library just receives pings and pings, but discards them. Sending a ping is only available by using _sendMessage(False, 0x9) which is discouraged. A proper handling like "send ping, if no response after x seconds and y tries, close connection". If I have enough time, I may open a PR.