Updated tf-server
All checks were successful
Build and Push Multi-Platform Docker Image / build-and-push (push) Successful in 16s
All checks were successful
Build and Push Multi-Platform Docker Image / build-and-push (push) Successful in 16s
This commit is contained in:
@@ -49,14 +49,19 @@ async def handler(ws: websockets.WebSocketServerProtocol):
|
||||
logging.warning("Target %s not found", target)
|
||||
|
||||
elif mtype == "labels":
|
||||
logging.info(f"Got labels from {peer_id}: {msg['labels']}")
|
||||
labels = msg.get("labels")
|
||||
peer_id = msg.get("id")
|
||||
freqs = msg.get("freqs")
|
||||
transitions = msg.get("transitions")
|
||||
logging.info(f"Got labels from {peer_id}: {msg['labels']}")
|
||||
if peer_id and isinstance(labels, list):
|
||||
|
||||
payload = json.dumps({
|
||||
"type": "broadcast_labels",
|
||||
"from": peer_id,
|
||||
"labels": labels
|
||||
"labels": labels,
|
||||
"freqs": freqs,
|
||||
"transitions": transitions
|
||||
})
|
||||
|
||||
# send to all except the originator
|
||||
|
||||
Reference in New Issue
Block a user