def _on_target_disconnected(self, event):

    channel = event.channels[0]
    sock = self._sockets[channel]

    self.fire(close(sock), "source")

    del self._sockets[channel]
    del self._clients[sock]
Disconnected Event Handler
dataset/ETHPy150Open circuits/circuits/examples/portforward.py/_on_target_disconnected