socket.io-poco
socket.io-poco copied to clipboard
Any planning about exposing heartbeat events or notification about disconnection?
I have to know when did we lose connection to the peer endpoint in one of my projects. For example, we pulled out the ethernet cable and expected our code to realize that the connection was somewhat broken. In the log messages outputted by socket.io-poco, I can notice that several heartbeat request did not get corresponding heartbeat response in this situation. How ever, there is no API to expose the heartbeat events, just logging. If there existed some API to expose heartbeat events, we can interprete the events and do some reconnection-trying logic at higher level. Or we can make socket.io-poco to handle the reconnection logic automatically. As far as I know, this logic is not in socket.io-poco yet. Or, am I totally misunderstanding this subject? What is your opinion?
I am going to implement the heartbeat event exposing feature is you are busy. Because I need it in my project.