JQuery & PHP - can I push from the server?

后端 未结 5 1301
野趣味
野趣味 2021-02-20 11:18

I am just starting to look at JQuery; until now everything has been PHP.

Just curious: if the server detects an event and wants to update the user\'s browser, can I do s

5条回答
  •  后悔当初
    2021-02-20 12:12

    That's not something really too related to jquery, but to Http itself.

    It's basically not possible for a server to push anything to client actively, two possible solution is:

    1. Keep the Http Connection without closing it.

    2. Polling

提交回复
热议问题