MishkaCmsCore.Accounts.Notifiers.DisconnectLiveSockets (Mishka CMS Core v0.0.1)

Copy Markdown View Source

Cuts a user's live sockets after any write that can shrink what they may reach or end their being signed in at all — see MishkaCmsCore.Accounts.LiveSockets for what "cut" means here.

In the notifier rather than in the actions, because a permission is taken away from the admin form, from a JSON:API request and from in-app code, and all three arrive here. Notifiers run after the transaction commits, so a socket is only cut once the change it is being cut for is real.

What it watches