zsub.setsockopt(zmq.SUBSCRIBE, topic(proto_name(WIFI_POSITIONING)))
zpush = zctx.socket(zmq.PUSH) # type: ignore
zpush.connect(conf.get("collector", "listenurl"))
+ zpub = zctx.socket(zmq.PUB) # type: ignore
+ zpub.connect(conf.get("rectifier", "publishurl"))
try:
while True:
except KeyboardInterrupt:
zsub.close()
+ zpub.close()
zpush.close()
zctx.destroy() # type: ignore
qry.shut()
}
self.conf["rectifier"] = {
"lookaside": "opencellid",
+ "publishurl": "ipc://" + self.tmpfilebase + ".rect.pub",
}
self.conf["wsgateway"] = {
"port": str(freeports[1]),
for sfx in (
"",
".pub",
+ ".rect.pub",
".pul",
".storage.sqlite",
".opencellid.sqlite",