Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
config
src
test
.dockerignore
.gitignore
.prettierrc
Dockerfile
README.md
nest-cli.json
nodemon-debug.json
nodemon.json
package.json
tsconfig.build.json
tsconfig.json
tslint.json
yarn.lock

README.md

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"}
You can’t perform that action at this time.