(self, data, blocking=False)
Sends a RAMP message.
        Set blocking=True to wait till the Chromecast sends a response
        to the command.
Sends a RAMP message.
        Set blocking=True to wait till the Chromecast sends a response
        to the command.
Sends a RAMP message . Set blocking = True to wait till the Chromecast sends a response to the command .
def _send_ramp(self, data, blocking=False):
        """
        Sends a RAMP message.
        Set blocking=True to wait till the Chromecast sends a response
        to the command.
        """
        data[RAMP_ATTR_CMD_ID] = self.command_id

        event = threading.Event() if blocking else None

        # Save type to match later with response
        self.commands[self.command_id] = (data[RAMP_ATTR_TYPE], event)

        self._send_protocol(data)

        self.command_id += 1

        if blocking:
            event.wait()
def _send_ramp ( self , data , blocking = False ) : data [ RAMP_ATTR_CMD_ID ] = self . command_id event = threading . Event ( ) if blocking else None # Save type to match later with response self . commands [ self . command_id ] = ( data [ RAMP_ATTR_TYPE ] , event ) self . _send_protocol ( data ) self . command_id += 1 if blocking : event . wait ( )