platypush/backend/__init__.py
def send_event(self, event, **kwargs):
        """
        Send an event message on the backend.

        :param event: Event to send. It can be a dict, a string/bytes UTF-8 JSON, or a platypush.message.event.Event
            object.
        """

        event = Event.build(event)
        assert isinstance(event, Event)

        event.origin = self.device_id
        if not hasattr(event, 'target'):
            event.target = self.device_id

        self.send_message(event, **kwargs)

        Send an event message on the backend.

        :param event: Event to send. It can be a dict, a string/bytes UTF-8 JSON, or a platypush.message.event.Event
            object.
        
Send an event message on the backend.
Send an event message on the backend .
def send_event(self, event, **kwargs):
        event = Event.build(event)
        assert isinstance(event, Event)
        event.origin = self.device_id
        if not hasattr(event, 'target'):
            event.target = self.device_id
        self.send_message(event, **kwargs)
def send_event ( self , event , ** kwargs ) : event = Event . build ( event ) assert isinstance ( event , Event ) event . origin = self . device_id if not hasattr ( event , 'target' ) : event . target = self . device_id self . send_message ( event , ** kwargs )
Send an event message on the backend.
Send an event message on the backend .
"""
        Send an event message on the backend.

        :param event: Event to send. It can be a dict, a string/bytes UTF-8 JSON, or a platypush.message.event.Event
            object.
        """
self
event
Event to send. It can be a dict, a string/bytes UTF-8 JSON, or a platypush.message.event.Event
object.
Event to send . It can be a dict a string / bytes UTF - 8 JSON or a platypush . message . event . Event object .