def trigger_event(self, channel_name, event_name, data):
        """
        Triggers the remote execution of an event with the given data. Direct
        call to the "trigger" method of the pusher object interface.
        :param channel_name: Name of the channel
        :param event_name: Name of the event
        :param data: Data associated to this event
        """
        if channel_name not in PushService.SATNET_CHANNELS:
            raise Exception(
                'Channel does not exist, name = ' + str(channel_name)
            )

        logger.info(
            '[push] channel = <' + str(channel_name) +
            '>, event = <' + str(event_name) +
            '>, data = <' + str(data) + '>'
        )

        if satnet_cfg.USE_PUSHER and not satnet_cfg.TESTING:
            self._service.trigger(channel_name, event_name, data)
dataset/ETHPy150Open satnet-project/server/services/common/pusher.py/PushService.trigger_event/original