music: near-realtime now playing (currently-playing every 5 s while playing, 30 s idle backoff, Retry-After, recent plays ~10 s after a track change, holder-based lease) and a public SSE stream /api/listening/stream feeding the listening card live with client-side progress
All checks were successful
Deploy production / deploy (push) Successful in 2m35s

This commit is contained in:
2026-10-24 17:28:33 +00:00
parent 7636f0b2bc
commit fac49b57ba
13 changed files with 21036 additions and 114 deletions

View File

@@ -164,6 +164,7 @@ export const musicSpotifyAuth = musicSchema.table(
recentCursor: bigint('recent_cursor', { mode: 'number' }),
needsReauth: boolean('needs_reauth').notNull().default(false),
leaseUntil: timestamptz('lease_until'),
leaseHolder: text('lease_holder'),
lastPollAt: timestamptz('last_poll_at'),
lastError: text('last_error'),
connectedAt: timestamptz('connected_at').notNull().defaultNow(),