Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How github "web push notifications" works?

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 ?

like image 467
user2854544 Avatar asked Apr 29 '14 14:04

user2854544


People also ask

How does web push notification work?

A push service receives a network request, validates it and delivers a push message to the appropriate browser. If the browser is offline, the message is queued until the the browser comes online. Each browser can use any push service they want, it's something developers have no control over.

Are web push notifications effective?

Statistics show that they have an 80% market reach, based on the number of browsers supporting web push (PushPushGo), with click-through rates typically seven times higher than email marketing, and opening rates 50% higher than email too (source: e-goi).

How do push alerts work?

Push notifications are messages that pop up on a user's mobile phone or desktop device via their chosen web browser. These little banners slide into view — whether or not your app or website is open.

Do push notifications use Webhooks?

To use push notifications, you need to do two things: Set up your receiving URL, or "Webhook" callback receiver. This is an HTTPS server that handles the API notification messages that are triggered when a resource changes.


Video Answer


1 Answers

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"

like image 115
user2854544 Avatar answered Oct 24 '22 16:10

user2854544