mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-11-26 23:29:38 -05:00
Add a reusable websocket helper that sends a JSON command and loops reads until finding a response containing the expected key. This handles the printer's unsolicited status messages that arrive on connect before the actual response. Returns empty string on timeout instead of throwing. Signed-off-by: Igor Mammedov <niallain@gmail.com>