Skip to content

Latest commit

 

History

History
28 lines (17 loc) · 787 Bytes

readme.md

File metadata and controls

28 lines (17 loc) · 787 Bytes

cat-lobby

simple http+sse based lobby server with cat themed room names

![RUN Cat-Lobby ON OpenShift](http://launch-shifter.rhcloud.com/launch/RUN Cat-Lobby ON.svg)

install + run

npm install cat-lobby -g
cat-lobby

HTTP API

POST /

creates a new lobby. receives response {name: new lobby name}

POST /ping/:name

POST /pong/:name

POST JSON to either the ping or pong channel. upload must be JSON and will be streamed out to anyone listening to pings/pongs. no response body

GET /pings/:name

GET /pongs/:name

listen to pings or pongs using Server-Sent Events