Implement synchronized LED wall output
This commit is contained in:
@@ -31,6 +31,7 @@ async def admin_ws(websocket: WebSocket) -> None:
|
||||
type=CommandType.CLOCK_PONG,
|
||||
payload={
|
||||
"client_send_ms": raw.get("client_send_ms"),
|
||||
"client_send_perf_ms": raw.get("client_send_perf_ms"),
|
||||
"server_time_ms": epoch_ms(),
|
||||
},
|
||||
),
|
||||
@@ -79,6 +80,7 @@ async def output_ws(websocket: WebSocket, tile_id: str) -> None:
|
||||
payload={
|
||||
"node_id": raw.get("node_id") or node_id,
|
||||
"client_send_ms": raw.get("client_send_ms"),
|
||||
"client_send_perf_ms": raw.get("client_send_perf_ms"),
|
||||
"server_time_ms": epoch_ms(),
|
||||
},
|
||||
),
|
||||
@@ -111,4 +113,3 @@ async def output_ws(websocket: WebSocket, tile_id: str) -> None:
|
||||
except WebSocketDisconnect:
|
||||
sync.disconnect_node(node_id)
|
||||
await hub.disconnect("outputs", websocket)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user