Permalink
Commits on Aug 25, 2011
  1. Removed umlaut

    committed Aug 25, 2011
  2. Corrected package.json

    committed Aug 25, 2011
Commits on Aug 18, 2011
  1. Added true JSON-RPC compatibility & improved error handling

    * 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
    committed Aug 18, 2011
Commits on Aug 17, 2011
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.

    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);
    });
    justmoon committed Jul 4, 2011
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

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

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

    jb55 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