def _on_establish(self):
        """Called when the connection to the server is established successfully"""
        self.handler.on_establish()
        for handler in self.data_handlers:
            handler.on_establish()
Called when the connection to the server is established successfully
nogotofail/mitm/connection/connection.py