a simple Hook which creates a httpServer and emits incoming requests to your Hook cloud
npm install hook.io-webhook -g
Starts up a webserver which listens for incoming HTTP requests and emits the requests to your hook.io network
hook.io-webhook will also attempt to parse all incoming form and query string data that may conform to JSON-RPC 1.0. If it cannot parse any data, hookio-webhook will fall-back to emit a generic
request event containing the entire body of the http request.
#! /usr/bin/env nodevar Webhook = Webhook;var webhookServer =name: 'webhook-server'port: 9001;webhookServerstart;