def send_command(self, command, arguments=''):
        if self._communication_thread is None:
            raise RuntimeError("Client is not registered. Cannot send command.")

        msg = r"Client on port %i sending: %s %s"
        logger.debug(msg, self._port, command, arguments)

        args = MESSAGE_SEP.join((str(self._port), command, arguments))
        if self.registered:
            self.error = not send_port(self._server_port, 'send', args)
        else:
            self._queue.append((command, arguments))
Send a command to the server which is to be passed to an object
dataset/ETHPy150Open enthought/envisage/envisage/plugins/remote_editor/communication/client.py/Client.send_command