Showing notification to all online user based on some event using next js

I have a service on my website I want if someone make a successful order I want to send a popup message to all online user on my website at that time. That xyz purchased abc service just now. I don’t know what exactly we call such type of behaviour.