web-push: Send messages using Web Push protocol.

This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.

[maintain] [Publish]

Warnings:

Please see README.md


[Skip to Readme]

Properties

Versions 0.1.0.0, 0.1.2.0, 0.1.2.0, 0.3
Change log None available
Dependencies aeson, base (>=4.7 && <5), base64-bytestring (>=1.0.0.1 && <1.1), binary (>=0.7.5 && <0.9), bytestring (>=0.9 && <0.11), cryptonite (>=0.21 && <0.22), exceptions (>=0.8.3 && <0.9), http-client (>=0.5.7 && <0.6), http-types (>=0.8.6 && <1.0), jose (>=0.5.0.4 && <0.6), memory (>=0.14.5 && <0.15), mtl (>=2.2.1 && <2.3), random (>=1.1 && <1.2), text (>=0.11 && <2.0), time, transformers (>=0.5.2.0 && <0.6), unordered-containers [details]
License MIT
Copyright 2017 Sarthak Bagaria
Author Sarthak Bagaria
Maintainer neokits@gmail.com
Category Web
Home page https://github.com/sarthakbagaria/web-push#readme
Source repo head: git clone https://github.com/sarthakbagaria/web-push
Uploaded by sarthakbagaria at 2017-06-17T17:46:14Z

Modules

[Index]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


Readme for web-push-0.1.2.0

[back to package description]

web-push

Helper functions to send messages using Web Push protocol.

Usage

The 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.

Guides to using Web Push API in browsers can be found on Mozilla's and Google's docs, or you can check out this untested Yesod app demonstrating the use of this library.

To Do

References

Current implementation is based on the following versions of the drafts: