Skip to content

Comments

feat: Run blocking plans via websockets#1413

Draft
tpoliaw wants to merge 6 commits intomainfrom
ws
Draft

feat: Run blocking plans via websockets#1413
tpoliaw wants to merge 6 commits intomainfrom
ws

Conversation

@tpoliaw
Copy link
Contributor

@tpoliaw tpoliaw commented Feb 25, 2026

As an intermediate step before (or instead of?) redesigning the server sub-process handling, we can add a websocket endpoint to run the same submit-listen-start approach that the client runs remotely.

@tpoliaw
Copy link
Contributor Author

tpoliaw commented Feb 25, 2026

Rough next steps in no particular order

  • Move websocket client method into BlueapiRestClient
  • Add wrapper method in BlueapiClient?
  • Add unstable/preview --ws flag to cli run method
  • Deal with auth. Browser websocket api can't set headers
  • Users + user-agents
  • Include data/progress events
  • Add service/meta events for error handling etc
  • Handle client aborting
  • Check interaction with server being busy
  • Wrap pipe/unpipe into something that doesn't need finally handling
  • See what happens when listeners fall over/slow down - do messages back up

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