How to implement Realtime push notification for my website?
I have a website which has two parts. The first part is used by X people and the second by Y people. The X people asks for help and the Y people instantly receiving the SOS resonds with an ETA of their arrival. I am using PHP-MySQL implementing the database and logging all the interactions of X and Y people. I know I can use Ajax for this purpose. Then Again I am not a big fan of Polling through setInterval method.
Which is the best approach to push messages and show notificaions from one page to another?
You have several ways to do that, here are some: