0.4.9 • Published 11 years ago

restio v0.4.9

Weekly downloads
4
License
-
Repository
github
Last release
11 years ago

restio

usage

server

var io = require('restio').listen(7589)

io.on.get('/user/:id', function (params, query, data, socket, respond) {
  respond({id: params.id})
})

//send to all
Object.keys(io.clients).forEach(function (id) {
  //callback will only be called if the client responds
  io.clients[id].post('/user', {id: 10}, function (data) {})
})

client

only component/component supported at the moment

require('restio').listen('http://localhost:7589', function (io) {
  io.get('/user/4', function (user) {})
  io.on.post('/user', function (params, query, data, respond) {})
})
0.4.9

11 years ago

0.4.8

11 years ago

0.4.6

11 years ago

0.4.4

11 years ago

0.4.1

11 years ago

0.4.0

11 years ago

0.3.2

11 years ago

0.3.1

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago