code: def _onMessage(self, ws, message):
          
          try:
              data = json.loads(message)['NotificationContainer']
              log.debug('Alert: %s %s %s', *data)
              if self._callback:
                  self._callback(data)
          except Exception as err:  # pragma: no cover
              log.error('AlertListener Msg Error: %s', err)
docs: Called when websocket message is recieved.