Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update Readme

  • Loading branch information...
commit b2aca2fe197c01b3566ce4c780ac255d2340b188 1 parent c3e3296
@timoxley authored
Showing with 7 additions and 5 deletions.
  1. +7 −5 README.md
View
12 README.md
@@ -36,7 +36,7 @@ so I wrapped them up in an 'easier' interface.
## Usage
-### Create a server with an API
+### Create a Server with an API
```javascript
@@ -47,12 +47,12 @@ var api = {
}
}
-// create server and listen for connections on port 3000
+// create Server and listen for connections on port 3000
var server = new enode.Server(api).listen(3000)
```
-### Creating a client and connecting to a server
+### Creating a Client and connecting to a Server
```javascript
@@ -61,7 +61,7 @@ var client = enode.Client().connect(3000)
```
-### Executing server API methods from a client
+### Executing Server API methods from a Client
```javascript
@@ -74,7 +74,7 @@ client.once('ready', function(server, connection) {
})
```
-### Creating a client with an API and connecting to a server
+### Creating a Client with an API and connecting to a Server
```javascript
@@ -86,6 +86,8 @@ client = enode.Client(api).connect(3000)
```
+### Calling a Client API
+
```javascript
server.on('connect', function(client, connection) {
Please sign in to comment.
Something went wrong with that request. Please try again.