def handle_event(self, json_event): event = Event.from_json(json_event) # App has no knowledge of its application_id, so set it here event.application_id = self._app.application_id # Indicate that the event came from an app socket event.source = Event.APP_EVENT self.manager.send_event(event)
def handle_event(self, json_event): event = Event.from_json(json_event) event.source = Event.DEVICE_EVENT self.manager.send_event(event)