Display Toast Notifications for Server Side Events with Lightning Web Components
NOTE: The project discussed in this post is on GitHub.
I recently needed to display a message to users in response to a server side event. Sometimes the message would only need to be displayed for the user who generated the event. For example, a user saves a record and something happens in a trigger they need to be notified of. We also had a use case where we want to notify every user who is currently using a particular application.