Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

syntax highlighting on code examples #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 5 additions & 2 deletions README
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.