A proxy tool specialized in file replacing for push Notifications
JavaScript
Permalink
Failed to load latest commit information.
content
examples
keys
lib
.gitignore
.jshintrc
README.MD
package.json
start.js

README.MD

logo

PushKnot

A proxy tool specialized in file replacing for push Notifications

Installation

npm install

Usage

node start.js --domain=<yourDomain>

This will start a proxy server at port 9002 by default.(This can be changed if your existing system is using this port for any other service) Set your browser's proxy to 127.0.0.1:port(9002 by default)

More Options

node pushKnot.js [options]

 --port [port]  Specify the port nproxy will listen on(9002 by default)
 --domain [domain] Specify the service worker domain. The proxy will only modify these requests.

Steps For integrating with Automation

  1. Start a chrome browser with --ignore-certificate-errors flag
  2. Set browser preference 'profile.default_content_setting_values.notifications': 1
  3. Start pushKnot node start.js --domain="your domain"
  4. Trigger the notification
  5. The push notification response will be captured under pushKnot/content/response.json