How can I detect the server disconnection in real time? I'd like to let my tool notify the users that the server connection is broken, right after the server is rebooted or shutdowned in the expected or unexpected way.
Should I use the techniques, e.g. using the heart bit signal between the client and the server? Or, any other idea?