Closed matmen closed 7 months ago
@Donkie While implementing this, I've noticed there's no spool updates being fired when the spools filament object is updated. Do you think it makes sense to fire update events cascadingly so a single WS connection suffices or does it make more sense to subscribe to the root endpoint and handle the state updates in the frontend (i.e. finding all spools with the associated filament ID and overwriting the vendor)?
Hmm, that's not something I've thought of. I feel like it would fire a lot of events unnecessarily if I changed the backend to cascadely send events to all spools if a filament changes. If it's easy for you I think it'd be better if you also subscribe to the filament of the spool if you're interested in changes in it.
Adds a WebSocket connection to listen for Spoolman state changes