Push.js – A minimalist JavaScript library for desktop notifications
github.com
github.com
WebPush is (going to be) an IETF standard: https://datatracker.ietf.org/wg/webpush/documents/
> 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.
What guidelines or general rule of thumb do you use when deciding if something is worth a notification?
> setInterval(function() { Push.create('Hi') }, 2000);
Niner one niner five copy that.
Why does this require HTTPS? How do I work around this during development? Service workers require secure origins to ensure that the service worker script is from the intended origin and hasn’t come about from a man-in-the-middle attack. Currently, that means using HTTPS on live sites, though localhost will work during development.