def METHOD_NAME(self):
    logger.info("trying to connect %s, %s", self.url.url, self.url.headers)
    try:
        self.ws = yield websocket_connect(self.url, ping_interval=constants.WEBSOCKET_PING_INTERVAL)
    except Exception as e:
        logger.exception("connection error, %s" % e)
        self.msg_handler.close()
    else:
        self.post_connected()
        self.run()