How github “web push notifications” works?

淺唱寂寞╮ 提交于 2021-02-07 07:05:08

问题


It seems that github uses a polling server for real time notifications (live.github.com) on its web interface.

It seems like the technology is not Websocket based neither XHR-polling.

How is it developed ?


回答1:


It seems they use HTML5 Server-Sent Events.

I found it after a while by looking at the request to live.github.com that accepts "text/event-stream"



来源:https://stackoverflow.com/questions/23367615/how-github-web-push-notifications-works

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!