From 124f134a3f9bd18a10cbd73ded4e99472cd97912 Mon Sep 17 00:00:00 2001 From: Taha Yassine Kraiem Date: Mon, 7 Feb 2022 15:12:13 +0100 Subject: [PATCH] feat(api): get live sessions directly from socketIO --- api/chalicelib/core/assist.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/chalicelib/core/assist.py b/api/chalicelib/core/assist.py index d60d8c366..165f43ea4 100644 --- a/api/chalicelib/core/assist.py +++ b/api/chalicelib/core/assist.py @@ -72,7 +72,7 @@ def get_live_sessions_ws(project_id): print(connected_peers.text) return [] live_peers = connected_peers.json().get("data", []) - return {"data": live_peers} + return live_peers def is_live(project_id, session_id, project_key=None):