github如何“网络推送通知"作品? [英] How github "web push notifications" works?

查看:56
本文介绍了github如何“网络推送通知"作品?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

似乎 github 在其 Web 界面上使用轮询服务器进行实时通知(live.github.com).

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

似乎该技术既不是基于 Websocket 的,也不是基于 XHR 轮询的.

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

它是如何开发的?

推荐答案

他们似乎使用 HTML5 Server-Sent Events.

It seems they use HTML5 Server-Sent Events.

我通过查看 live.github.com 接受text/event-stream"的请求,过了一段时间发现了

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

这篇关于github如何“网络推送通知"作品?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆