Send messages using Web Push protocol. https://github.com/sarthakbagaria/web-push#readme
|Latest on Hackage:||0.1.2.0|
This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.
Helper functions to send messages using Web Push protocol.
sendPushNotification function encodes the message into Base64 URL form before encrypting and sending. Decode the message in Service Worker notification handler in browser before trying to read the JSON message.
- Add recognition of more error/status codes from send notification HTTP response.
- Clearly differentiate between ByteString encodings (Raw, Base64URL etc).
- Extend tests to verify that push messages are sent properly.
Current implementation is based on the following versions of the drafts: