how to implement facebook like notification?

前端 未结 5 1108
面向向阳花
面向向阳花 2020-12-22 22:32

I am trying to implement a Facebook-like live notifications system to notify users whenever someone adds them as friend, like their post or posts replies to their comments.

5条回答
  •  别那么骄傲
    2020-12-22 23:15

    The only way to do it is to have some sort of mechanism (e.g. Javascript) to repeatedly poll the server for updates. Doing server pushes to web browsers isn't possible.

提交回复
热议问题