Broadcast an event between different sessions opened by different users in AngularJS
I am working on an application that can be used by multiple users in angularJS. When I (user A) assign a new task to a different user (user B), I broadcast an event. However, as user B is logged in a different browser and has a different session, that event is broadcasted just for user A.
How can I broadcast the event to all the different users (sessions) using my website?
One way of doing this was having an interval of 10 seconds and updating the data, but that is not efficient.
That's why what I am looking for is a way to broadcast and even from user A's session and on receiving it in user B's session, update the view!
Any help is appreciated!