Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ the V8 based evented IO framework.

Firing up an efficient JSON-RPC server becomes extremely simple:

```javascript
var rpc = require('jsonrpc');

function add(first, second) {
Expand All @@ -11,10 +12,11 @@ Firing up an efficient JSON-RPC server becomes extremely simple:
rpc.expose('add', add);

rpc.listen(8000, 'localhost');

```

And creating a client to speak to that server is easy too:

```javascript
var rpc = require('jsonrpc');
var sys = require('sys');

Expand All @@ -23,8 +25,9 @@ And creating a client to speak to that server is easy too:
client.call('add', [1, 2], function(result) {
sys.puts('1 + 2 = ' + result);
});
```

To learn more, see the examples directory, peruse test/jsonrpc-test.js, or
simply "Use The Source, Luke".

More documentation and development is on its way.
More documentation and development is on its way.