docs: def messages(self, channel='sse'):
          """
          A generator of :class:`~flask_sse.Message` objects from the given channel.
          """
          pubsub = self.redis.pubsub()
          pubsub.subscribe(channel)
          for pubsub_message in pubsub.listen():
              if pubsub_message['type'] == 'message':
                  msg_dict = json.loads(pubsub_message['data'])
                  yield Message(**msg_dict)