From 2ee0b8b0d793ebca3c3ddb2d970e033efdd50fdf Mon Sep 17 00:00:00 2001 From: Johan Marcusson Date: Mon, 31 Jul 2023 14:21:38 +0200 Subject: [PATCH] join sync room if sync key exists with value 'all' --- src/cnaas_nms/api/app.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cnaas_nms/api/app.py b/src/cnaas_nms/api/app.py index 3f60c734..a69d0421 100644 --- a/src/cnaas_nms/api/app.py +++ b/src/cnaas_nms/api/app.py @@ -152,6 +152,8 @@ def socketio_on_events(data): room = data["loglevel"] elif "update" in data and data["update"] in ["device", "job"]: room = "update_{}".format(data["update"]) + elif "sync" in data and data["sync"] == "all": + room = "sync" else: return False # TODO: how to send error message to client?