Skip to content

Realtime Sync

The Library maintains realtime subscriptions while the relevant app surface is active. The subscription registry covers track groups, comments, notifications, collaborator status, tags, bucket assignments, projects, bucket membership, approval events, and royalty entries.

When the realtime manager is cleaned up, it attempts to unsubscribe from every active channel, clears the stored references, clears pending reconnect timers, resets reconnect attempts, and marks the manager inactive. Individual unsubscribe failures do not prevent the remaining channels from being cleaned up.

This cleanup contract prevents stale subscriptions from persisting after the active realtime surface ends.