Skip to content

POST -> WebSocket forwarding service

Notifications You must be signed in to change notification settings

masterayman/buoy-nodejs

 
 

Repository files navigation

buoy

POST -> WebSocket forwarder

Usage

  • POST to any data to /<uuid>
  • UPGRADE a WebSocket on /<uuid> to receive data

Headers

X-Buoy-Delivery will be set to delivered if the data was delivered directly to a listening socket, otherwise buffered.

X-Buoy-Wait can be specified in number of seconds to wait for the data to be delivered to a listener, will return a 408 if the data cannot be delivered within time limit. Will always have X-Buoy-Delivery: delivered on a successful request.

X-Buoy-Soft-Wait can be specified in number of seconds to wait for the data to be delivered to a listener, will return a 202 if the data cannot be delivered within time limit.

Run with docker

$ docker build .
...
<container id>
$ docker run -d --name buoy <container id>

About

POST -> WebSocket forwarding service

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 95.7%
  • Makefile 2.3%
  • Dockerfile 2.0%