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"?
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"?
Send something over websocket, start timer
When something received stop timer.
If timer expires then close websocket and attempt to reopen socket.
Bedopies (25th October 2019)
Bookmarks