def heartbeat(self):
        if not self.listener.has_clients():
            self.set_idle_state()
        self.after(2000, self.heartbeat)
Monitor the existence of a remote connection
dataset/ETHPy150Open boakley/robotframework-workbench/rwb/debugger/app.py/DebuggerApp.heartbeat