while True:
if not self._queue.is_closed():
yield self._queue.flush_queue(self)
yield gen.sleep(throttle_secs)
// @Proxy.stop_proxy_on_exception
def on_message(self, msg):
Run callback for websocket messages.
After Change
if not self._queue.is_closed():
yield self._queue.flush_queue(self)
yield gen.sleep(throttle_secs)
LOGGER.debug(f"Closing loop for "{self._connection.name}"")
@gen.coroutine