code: def _ws_on_error(self, ws: websocket.WebSocketApp, error: Exception):
          
          self.logger.error(f'Got error from websocket connection: {str(error)}')
docs: Callback for receiving errors from the websocket connection
  
          Args:
              ws: websocket connection
              error: exception raised