Skip to content

Provides a webhook and forwards the data via websocket to clients

Notifications You must be signed in to change notification settings

philipheimboeck/websocket-bridge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Websocket Bridge

Forwards calls to a webhook to connected websockets.

Installation

  1. Install the project with yarn.
yarn install
  1. Build the project
npm run build
  1. Start the server
node dist/index.js

Example

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"}

Requirements

  • node 6.11
  • yarn
  • typescript

About

Provides a webhook and forwards the data via websocket to clients

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published