Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

real time notifications with jquery and php

I'm trying to find some php and jquery tutorial/plugin or piece of code which enables to get the real time notifications. For example, if some data is inserted in the database, i want to receive the notification on the webpage in real time without refresh etc. If you know any resource, please let me know. Bundle of thanks.

like image 658
Lucka Avatar asked Nov 14 '22 04:11

Lucka


1 Answers

You will need to poll the server, preferably using long polling (not trivial with PHP).

The server can respond blank, or a JSON message if there is something to be returned.

like image 72
alex Avatar answered Dec 31 '22 06:12

alex