paperboy-push-service

1.1.2 • Public • Published

Paperboy Push Service

Paperboy Push Service is a simple webservice that will convert an incoming HTTP request into a message in paperboy's queue thus abstracting the complexity of multiplexing a notification to the clients.

Usage

You push a message like

{"foo":"bar","source":"test"}

into the queue with the following cURL command:

curl -X POST \
  http://localhost:8081/ \
  -H 'Authorization: Bearer test' \
  -H 'Cache-Control: no-cache' \
  -H 'Content-Type: application/x-www-form-urlencoded' \
  -d 'source=test&payload=%7B%22foo%22%3A%22bar%22%7D'

The parameters source and payload are optional. The default message will look like this:

{"source":"push-notifier"}

Readme

Keywords

none

Package Sidebar

Install

npm i paperboy-push-service

Homepage

neolabs.io

Weekly Downloads

0

Version

1.1.2

License

Apache-2.0

Unpacked Size

15.2 kB

Total Files

12

Last publish

Collaborators

  • psiekmann