I need a way to detect that if there is any active connection in the IDE or not (to kill it!). it could be possible by adding an endpoint to server, for example localhost:3000/heartbeat and it should return a json and says what was the last connection time and is there any active connection or not.
Thanks!