One way to do this is to use any of the several techniques collectively called “comet“, such as never-ending frames, web sockets, etc. There are libraries that abstract things for you, such as SocketIO.
3
solved how to detect change in sql database without making http requests? [closed]