News for hackers. Stuff that matters.
Re:Push.js – A minimalist JavaScript library for desktop not... by echeese on Tuesday May 17, 2016 @02:52PM (#11716254)
I hate to be pedantic but these are not push notifications. Those are the ones that can be sent even if the webapp is closed, for example, this Chrome demo: https://developers.google.com/web/fundamentals/getting-start...
Re:Push.js – A minimalist JavaScript library for desktop not... by untog on Tuesday May 17, 2016 @03:16PM (#11716478)
Sort of. There's nothing stopping you from using script inside a Service Worker to send those notifications. Calling them push notification is troublesome as the Web Push API and Notification API are actually two entirely separate things.
Re:Push.js – A minimalist JavaScript library for desktop not... by dang on Tuesday May 17, 2016 @03:16PM (#11716476)
Ok we replaced 'push' with 'desktop' which is what the Github page says.
Re:Push.js – A minimalist JavaScript library for desktop not... by jvehent on Tuesday May 17, 2016 @03:00PM (#11716331)
Re:Push.js – A minimalist JavaScript library for desktop not... by andrewstuart2 on Tuesday May 17, 2016 @04:10PM (#11716970)
Yikes, that really seems like abuse of HTTP/2 semantics to me. My understanding has always been that server push in HTTP/2 is only intended to prime the client cache for requests you know they're about to (or likely to) make. [1]

> Pushed responses are always associated with an explicit request from the client.

I'd rather see additional frame types defined that allow for bidirectional communication (i.e. websockets 2.0) than overriding and conflating the PUSH_PROMISE frame type.

[1] https://tools.ietf.org/html/rfc7540#section-8.2

Re:Push.js – A minimalist JavaScript library for desktop not... by RealGeek on Tuesday May 17, 2016 @07:02PM (#11718335)
I've built a plug & play app for Web Push Notifications. It comes with an analytics dashboard and an interface for users to manage their subscription. If anyone is interested to try it, you can see the demo at https://www.pushroll.com
Re:Push.js – A minimalist JavaScript library for desktop not... by andreasklinger on Tuesday May 17, 2016 @02:58PM (#11716308)
unsure here but isnt it the same but in this case it is just not yet using a service worker to listen for new push notifications ?