def onEvent(self, event): if event[0] == "connection closed": self.handleClosedConnection(event[1]) CommunicationManagerHandler.onEvent(self, event)