Esempio n. 1
0
    def send_msg_unregister(self, chanName):
        """Send a channel unregister message.

        Arguments:
        chanName -- a string representing the channel name, i.e. 'var/toto'
        """
        if self.isSpecConnected():
            self.__send_msg_no_reply(SpecMessage.msg_unregister(chanName, version=self.serverVersion))
        else:
            raise SpecClientNotConnectedError
Esempio n. 2
0
    def send_msg_unregister(self, chanName):
        """Send a channel unregister message.

        Arguments:
        chanName -- a string representing the channel name, i.e. 'var/toto'
        """
        if self.isSpecConnected():
            self.__send_msg_no_reply(
                SpecMessage.msg_unregister(chanName,
                                           version=self.serverVersion))
        else:
            raise SpecClientNotConnectedError
Esempio n. 3
0
    def send_msg_unregister(self, chan_name):
        """Send a channel unregister message.

        Arguments:
        chan_name -- a string representing the channel name, i.e. 'var/toto'
        """
        if not self.is_connected():
            raise SpecClientNotConnectedError

        msg = SpecMessage.msg_unregister(chan_name,
                                         version=self.server_version)
        self.__send_msg_no_reply(msg)