1. Eric Satterwhite
  2. skyring-demo



Getting Started With Skyring

install the app

# npm install

Start a 2 node ring

# Start Node 1
$ DEBUG=skyring:* PORT=3001 node index.js
# Start Node 2
$ DEBUG=skyring:* PORT=3002 node index.js --channel:port=3455

Echo server

This is a dummy app server to handle timers. In most other cases, this would be your application

$ node echo.js

Create a Timer

$ curl -i -XPOST http://localhost:3000/timer -d '{
  "timeout": 5000,
  "data": "hello world!",
  "callback": {
    "transport": "http",
    "method": "post",
    "uri": ""