@neoskop/paperboy-push-service

2.9.1 • 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 @neoskop/paperboy-push-service

Weekly Downloads

1

Version

2.9.1

License

MIT

Unpacked Size

20.1 kB

Total Files

37

Last publish

Collaborators

  • mjablonski
  • szczepanski
  • amolnar
  • arnediekmann