def unsubscribe(self, code): """ Remove subscription to the event named code. """ self.socket.setsockopt(zmq.UNSUBSCRIBE, code.encode('utf-8')) # reception part