def respond(self, follow_up=True, **kwargs):
        if self['type'] == 'response':
            assert self['done'] == False, "Can't respond to a response that is already marked done."
        data = {'command_id': self['command_id'], 'type':'response'}
        data.update(kwargs)
        if not data.has_key('done'):
            data['done'] = False
        data_str = json.dumps(data, cls=JSONEncoder)
        log.debug("Sending response : {data}".format(data=data_str))
        self.ws.send(data_str)
        if data['done'] == False and follow_up:
            # We are still expecting a response to our response:
            return self.receive()
Thin wrapper for main() that catches KeyboardInterrupts.
dataset/ETHPy150Open datastax/cstar_perf/frontend/cstar_perf/frontend/lib/socket_comms.py/CommandResponseBase.respond--crossover with--dataset/ETHPy150Open earwig/git-repo-updater/gitup/script.py/run