/brubeckr

a jsonrpc2 handler for brubeck, a socket/ZeroRPC gateway, play as the bridge between brubeck and zerorpc.

Primary LanguagePython

brubeckr

a jsonrpc2 handler for brubeck, a socket ZeroRPC gateway, play as the bridge between brubeck and zerorpc.

Example

there is a working server on my aws ec2, so feel free to check it out.

def hello(self, who = "world!"):
        return "hello %s!" % who
(brubeck)vagrant@precise64:/vagrant/brubeckr/examples$ ./client.py build.cokecode.com 6767 hello
{
  "id": 1, 
  "jsonrpc": "2.0", 
  "result": "hello world!!"
}
(brubeck)vagrant@precise64:/vagrant/brubeckr/examples$ ./client.py build.cokecode.com 6767 hello harmy
{
  "id": 1, 
  "jsonrpc": "2.0", 
  "result": "hello harmy!"
}