mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-06-01 11:38:26 +01:00
The provider only kept the most recent message in `lastMessage`, so two messages arriving in the same tick were coalesced and one was lost. Add a `subscribe(messageType, handler)` registry that delivers every message to its handlers without coalescing, and move the provider's own `Play` and `LibraryChanged` handling onto it. `lastMessage` is kept (now deprecated) for `useWebsockets`, which still consumes it for GeneralCommand handling.