Skip to content

Upgrade websockets API (#91)#93

Open
daveriedstra wants to merge 2 commits intomonome:mainfrom
daveriedstra:websockets
Open

Upgrade websockets API (#91)#93
daveriedstra wants to merge 2 commits intomonome:mainfrom
daveriedstra:websockets

Conversation

@daveriedstra
Copy link
Copy Markdown
Contributor

@daveriedstra daveriedstra commented Dec 21, 2025

This upgrades druid's consumption of the websockets API and better handles websocket messages while crow is disconnected.

NB: some errors are still logged when talking to druid with websocat via localhost but not via 127.0.0.1 (as described in #91). However, these don't block functionality and also aren't present when using python's websockets, so they are a different issue, possibly nothing to do with druid.

This error can happen when crow.serial = None, indicating crow is not
connected. It might happen in other cases too, but this seems common and
mundane enough to mention to the user.
@tehn
Copy link
Copy Markdown
Member

tehn commented Dec 22, 2025

thank you for investigating this! confirmed that it's now working. the errors are frustrating, i suspect this could be addressed with configuration options or another exception handler. maybe websocat isn't closing the connection the way it wants? i'll see if i can poke at it and make it a clean fix

@daveriedstra
Copy link
Copy Markdown
Contributor Author

Yeah I might take another poke at it if I have some more time. I'd like to do some kind of wiresharking to inspect the difference between what causes the errors and what doesn't. Might just be that the library got pickier.

@tehn
Copy link
Copy Markdown
Member

tehn commented Apr 10, 2026

regrettably I haven't had the bandwidth to delve into this (it's really beyond my expertise) so a potential workaround is to use a python project manager that pegs a specific version. had to do this to salvage diii (the iii version of druid): https://monome.org/docs/iii/diii-cli/#setup

not sure if this will simply be how managing old python projects goes from now on

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