Repository navigation
Clear retired socket snapshots before replay - #24
Conversation
c77ed76 to
3234c93
Compare
|
Thanks Florian, and thanks for splitting this out of #20 as suggested. The client side is exactly right: One gap: on main nothing sends |
fdussert
left a comment
There was a problem hiding this comment.
Thanks Florian, forget() now invalidates only the live subscribers, the message matches what the client expects, and the reordered close keeps it off closing sockets. It also pairs nicely with #25: unticking the e-mail setting no longer lets a newly opened tile replay the old address. Tests are green on top of main. Approving and merging.
A provider can retire a channel while widgets remain subscribed, and reconnects can miss invalidations. Clear only the host replay cache so new tiles wait for fresh data. Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
a671470 to
f750c34
Compare
|
I rebased this on main myself to get it into 0.3.0: conflicts only, both sides kept, no change to your code, and you stay the author of every commit. If you push to this branch again, please |
A newly opened widget could replay an old channel snapshot after the provider retired it. For example, deleting an account while a tile stayed subscribed left the previous account data in the browser's replay cache; a second tile could receive that stale snapshot. A disconnect could also miss the retirement event.
Clear only the host replay cache on a channel
invalidatemessage and on WebSocket close. Existing widgets receive no synthetic payload; fresh provider data still flows to their subscriptions. This extracts the independentsocket.tsfix from the held account-services PR #20.Validation on current main:
pnpm typecheck,pnpm test(1,371 server and 387 UI tests), andpnpm build. The two new UI tests cover invalidation while subscribed and a disconnect before a later subscriber.