diff --git a/app.py b/app.py index fdf7634..2b11bcb 100644 --- a/app.py +++ b/app.py @@ -84,7 +84,12 @@ async def scene_render(request: Request, scene_id: str): async def websocket_endpoint(ws: WebSocket): cid = await ws_manager.connect(ws) try: - await ws.send_json({"type": "connected", "client_id": cid}) + cfg = get_config() + await ws.send_json({ + "type": "connected", + "client_id": cid, + "selected_game_id": cfg.get("selected_game_id"), + }) while True: msg = await ws.receive_json() if msg.get("type") == "ping": diff --git a/dashboards/gear_indicator/index.html b/dashboards/gear_indicator/index.html index a4b2ff5..41e94e4 100644 --- a/dashboards/gear_indicator/index.html +++ b/dashboards/gear_indicator/index.html @@ -46,6 +46,60 @@ html,body{width:100%;height:100%;overflow:hidden;background:#000;