Push an inbox notification to the right account
Subscribe each signed-in client to a channel for its own account, then publish to that channel from your backend when it stores a new message. Broadcast pushes the event to every session that the account has open, where your client code renders it.
Impact
In the sample, the notify route publishes a message.received event to the recipient's inbox channel, which the InboxToaster component subscribes to with useChannel. The component lists each message with its sender and preview in an aria-live region, so a screen reader can announce it as well.
Prompt for a coding agent: Show a toast when a new message reaches the inbox, and let screen readers announce it.
Select a file to view its contents
