Permalink
Switch branches/tags
Nothing to show
Commits on Dec 6, 2011
  1. Bump version to 0.0.8.

    justmoon committed with fiddlerwoaroof Dec 4, 2011
  2. Added true JSON-RPC compatibility & improved error handling

    Philipp15b committed with fiddlerwoaroof Aug 18, 2011
    * Removed handleInvalidRequest()
    * Added handleError with JSON error object
    * Now returning JSON-RPC as it is in the specs
    (http://groups.google.com/group/json-rpc/web/json-rpc-2-0?pli=1)
    * Prevented server crashes because of invalid JSON
    * Changed callback syntax used by the server functions (look at README)
    * Allowing extra error callback or error parameter in
    success callback at the client
  3. Bump version to 0.0.7.

    Stefan committed with fiddlerwoaroof Oct 18, 2011
Commits on Aug 17, 2011
  1. Merge pull request #1 from Philipp15b/faa006481f2732b09ffd6a68174

    fiddlerwoaroof committed Aug 17, 2011
    Added JSON-RPC version declaration in onFailure and onSuccess handlers.
Commits on Jul 25, 2011
  1. added jsonrpc:2.0

    fiddlerwoaroof committed Jul 25, 2011
Commits on Jul 17, 2011
Commits on Jul 16, 2011
Commits on Jul 5, 2011
  1. Version bump to 0.0.5.

    justmoon committed Jul 5, 2011
  2. Version bump to 0.0.4.

    justmoon committed Jul 5, 2011
Commits on Jul 4, 2011
  1. Version bump.

    justmoon committed Jul 4, 2011
  2. Changed handler format to conform to Node.js norms.

    justmoon committed Jul 4, 2011
    Callbacks should always take an "err" argument first for asynchronous
    error handling.
    
    Callbacks should be passed in as the last parameter (this was already
    the case).
    
    The parameter array should be passed in as an array. -- Now, I had
    quite some internal debate about this. It is nicer syntax-wise to have
    the arguments come in as actual arguments, not as an array.
    
    However, it does have the effect that the callback parameter moves
    around depending on user-submitted data. So the function will have to
    handle finding out which parameter is the callback, which is a lot
    uglier and more error-prone than just passing in the arguments as an
    array.
    
    Finally, I've added an additional parameter "opt" which contains the
    HTTP request object and the server object. This is useful as an
    extensible way to deliver more features and options to the handler in
    future versions of the library.
    
    Here is an example handler with the new syntax:
    
    server.expose('multiply', function (args, opt, callback) {
      var a = args[0],
          b = args[1];
    
      callback(null, a*b);
    });
Commits on Jul 1, 2011
  1. Added package.json for NPM.

    justmoon committed Jul 1, 2011
Commits on Dec 20, 2010
  1. Rewritten and refactored rpc server

    Bill Casarin committed Dec 20, 2010
Commits on Dec 16, 2010
  1. Removed debug statements

    Bill Casarin committed Dec 16, 2010
  2. Updated for bleeding edge node

    Bill Casarin committed Dec 16, 2010
Commits on Nov 28, 2009
  1. Create the client in the call instead of once globally.

    Eric Florenzano committed Nov 28, 2009
Commits on Nov 27, 2009
  1. Various fixes to the examples.

    ericflo committed Nov 27, 2009
  2. first commit

    ericflo committed Nov 27, 2009