How does Stack Overflow notify of server-side events without a page reload? I see no request in Firebug

前端 未结 2 1973
别那么骄傲
别那么骄傲 2020-12-25 14:21

How does Stack Overflow show the answer added/edited message without a page reload?

\"enter

2条回答
  •  清酒与你
    2020-12-25 15:02

    To add to Xavi's answer, if you want to get started with web sockets without having to understand all the internals, you might try out Pusher, a library for multiple platforms (including PHP) that makes push notifications on the web very straightforward.

    I do not work for Pusher; it's just a product I've found very useful in the past. I've always used the free version for small personal projects, though I would probably pay if I ever used it on a larger application.

提交回复
热议问题