Forwards calls to a webhook to connected websockets.
- Install the project with
yarn
.
yarn install
- Build the project
npm run build
- Start the server
node dist/index.js
Start the server with node dist/index.js
and connect with any websocket client to ws://localhost:8081
.
Post data to http://localhost:8080
.
curl -X POST -d '{"key":"value"}' -H "Content-Type: application/json" localhost:8080
On the websocket client you should now receive the json object
{"key":"value"}
- node 6.11
- yarn
- typescript