def __init__(self, emit_addr=EMIT_ADDR, reg_addr=REG_ADDR, path_prefix=None): """ Initialize the events server. """ TxZmqClientComponent.__init__(self, path_prefix=path_prefix) EventsClient.__init__(self, emit_addr, reg_addr) # connect SUB first, otherwise we might miss some event sent from this # same client self._sub = self._zmq_connect(txzmq.ZmqSubConnection, reg_addr) self._sub.gotMessage = self._gotMessage self._push = self._zmq_connect(txzmq.ZmqPushConnection, emit_addr)
def shutdown(self): TxZmqClientComponent.shutdown(self) EventsClient.shutdown(self)
def shutdown(self): EventsClient.shutdown(self)