I'm using react toastify to display toast message and I'm aware of using toaster in saga on return of promise/response.
But in this case, I need to listen to a channel and whenever any message is received through the websockets channel I need to display a toast message.
I have placed my toaster component in my app.js. but how to call toast.error() or toast.success() considering the fact I have many pages and data from websocket can come anytime when I can be on any page/component?