feat(api): get live sessions directly from socketIO

This commit is contained in:
Taha Yassine Kraiem 2022-02-07 15:12:13 +01:00
parent 3a08033f16
commit 124f134a3f

View file

@ -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):