View Full Version : Qt Websocket Catch If pong didnt reveived.

24th October 2019, 19:50
Hello, I want to implement "heart beat" or "life" function to my program. This function will check is server or internet connection down or no based on pong receiving. How I can do "if pong didnt received in time then attempt to reconnect"?

25th October 2019, 09:44
Send something over websocket, start timer
When something received stop timer.
If timer expires then close websocket and attempt to reopen socket.