Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Commits on Aug 25, 2011
  1. Removed umlaut

    authored
  2. Corrected package.json

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

    authored
    * 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
Commits on Aug 17, 2011
Commits on Jul 25, 2011
  1. @fiddlerwoaroof

    added jsonrpc:2.0

    fiddlerwoaroof authored
Commits on Jul 17, 2011
  1. @justmoon
Commits on Jul 16, 2011
  1. @justmoon
Commits on Jul 5, 2011
  1. @justmoon

    Version bump to 0.0.5.

    justmoon authored
  2. @justmoon
  3. @justmoon

    Version bump to 0.0.4.

    justmoon authored
  4. @justmoon
Commits on Jul 4, 2011
  1. @justmoon

    Version bump.

    justmoon authored
  2. @justmoon

    Changed handler format to conform to Node.js norms.

    justmoon authored
    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);
    });
  3. @justmoon
Commits on Jul 1, 2011
  1. @justmoon
  2. @justmoon

    Added package.json for NPM.

    justmoon authored
Commits on Dec 20, 2010
  1. @jb55
Commits on Dec 16, 2010
  1. @jb55

    Removed debug statements

    jb55 authored
  2. @jb55

    Updated for bleeding edge node

    jb55 authored
Commits on Nov 28, 2009
  1. Create the client in the call instead of once globally.

    Eric Florenzano authored
Commits on Nov 27, 2009
  1. @ericflo
  2. @ericflo
  3. @ericflo

    Various fixes to the examples.

    ericflo authored
  4. @ericflo

    first commit

    ericflo authored
Something went wrong with that request. Please try again.