0.1.2 • Published 8 years ago

qooxdoo-rpc v0.1.2

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

Qooxdoo RPC

Build Status

Qooxdoo json rpc for nodejs express framework.

Usage example

var app = express()
var bp  = require('body-parser')
var qx  = require('qooxdoo-rpc')

###Service mapped to function.

qx.service('user', function(){
  console.log("hello world")
});

###Service mapped to an object.

qx.service('world', {

  hello: function(args){
    console.log('hello');
  },

  world: function(args){
    console.log('world');
  }
})

###Add as middleware to expressjs

app.use('/rpc', qx.services);
app.listen(3000);

##Reference
Qooxdoo JSON RPC spec