v0.2.2.2 (#830)
This commit is contained in:
MartinNYHC
2026-03-27 09:27:47 +01:00
committed by GitHub
parent 8270030687
commit 67f91d94de
112 changed files with 18595 additions and 9993 deletions
+16
View File
@@ -91,6 +91,22 @@ class ConnectionManager:
}
)
async def send_missing_spool_assignment(
self,
printer_id: int,
printer_name: str,
missing_slots: list[dict[str, str]],
):
"""Notify clients that a print started with missing spool assignments."""
await self.broadcast(
{
"type": "missing_spool_assignment",
"printer_id": printer_id,
"printer_name": printer_name,
"missing_slots": missing_slots,
}
)
# Global connection manager
ws_manager = ConnectionManager()