Skip to content

fix(moonraker): deliver ws callbacks on the GUI thread, fail them on disconnect, fetch spools via the Spoolman proxy - #345

Merged
gmmcosta15 merged 3 commits into
devfrom
fix/amu-1-ws-transport
Oct 13, 2026
Merged

gmmcosta15 merged 3 commits into
devfrom
fix/amu-1-ws-transport

Conversation

@gmmcosta15

@gmmcosta15 gmmcosta15 commented Oct 13, 2026 •

Copy link
Copy Markdown
Collaborator

Moonraker ws callbacks run on the GUI thread, pending requests fail on disconnect, spools are fetched through server.spoolman.proxy.

Callback contract: when send_request returns True, the callback runs exactly once on the GUI thread with either the result or {"error": {"code": int, "message": str}} (a Moonraker error, or code -1 for a disconnect), so check for "error" before reading it; when it returns False, the callback never runs and the caller handles the failure.

…disconnect, fetch spools via the Spoolman proxy
@gmmcosta15
gmmcosta15 force-pushed the fix/amu-1-ws-transport branch from da46b7f to e4ac90b Compare October 13, 2026 15:36
@gmmcosta15
gmmcosta15 merged commit db948b4 into dev Oct 13, 2026
10 checks passed
@gmmcosta15
gmmcosta15 deleted the fix/amu-1-ws-transport branch October 13, 2026 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants