platypush/backend/__init__.py
def send_message(self, msg, queue_name=None, **kwargs):
        """
        Sends a platypush.message.Message to a node.
        To be implemented in the derived classes. By default, if the Redis
        backend is configured then it will try to deliver the message to
        other consumers through the configured Redis main queue.

        :param msg: The message to send
        :param queue_name: Send the message on a specific queue (default: the queue_name configured on the Redis
            backend)
        """

        try:
            redis = get_backend('redis')
            if not redis:
                raise KeyError()
        except KeyError:
            self.logger.warning("Backend {} does not implement send_message " +
                                "and the fallback Redis backend isn't configured")
            return

        redis.send_message(msg, queue_name=queue_name)

        Sends a platypush.message.Message to a node.
        To be implemented in the derived classes. By default, if the Redis
        backend is configured then it will try to deliver the message to
        other consumers through the configured Redis main queue.

        :param msg: The message to send
        :param queue_name: Send the message on a specific queue (default: the queue_name configured on the Redis
            backend)
        
Sends a platypush.message.Message to a node.
To be implemented in the derived classes. By default, if the Redis
backend is configured then it will try to deliver the message to
other consumers through the configured Redis main queue.
Sends a platypush . message . Message to a node . To be implemented in the derived classes . By default if the Redis backend is configured then it will try to deliver the message to other consumers through the configured Redis main queue .
def send_message(self, msg, queue_name=None, **kwargs):
        try:
            redis = get_backend('redis')
            if not redis:
                raise KeyError()
        except KeyError:
            self.logger.warning("Backend {} does not implement send_message " +
                                "and the fallback Redis backend isn't configured")
            return
        redis.send_message(msg, queue_name=queue_name)
def send_message ( self , msg , queue_name = None , ** kwargs ) : try : redis = get_backend ( 'redis' ) if not redis : raise KeyError ( ) except KeyError : self . logger . warning ( "Backend {} does not implement send_message " + "and the fallback Redis backend isn't configured" ) return redis . send_message ( msg , queue_name = queue_name )
Sends a platypush.message.Message to a node.
Sends a platypush . message . Message to a node .
"""
        Sends a platypush.message.Message to a node.
        To be implemented in the derived classes. By default, if the Redis
        backend is configured then it will try to deliver the message to
        other consumers through the configured Redis main queue.

        :param msg: The message to send
        :param queue_name: Send the message on a specific queue (default: the queue_name configured on the Redis
            backend)
        """
self
msg
The message to send
The message to send
queue_name
Send the message on a specific queue (default: the queue_name configured on the Redis
backend)
Send the message on a specific queue ( default : the queue_name configured on the Redis backend )