Skip to content

Commit 3d85f5e

Browse files
author
ionut.stan
committed
Corrections.
1 parent e9ddc0c commit 3d85f5e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.MD

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ See `JSONRPC.ClientPluginBase` and `JSONRPC.ServerPluginBase`. Plugins may be ad
1212

1313
Events may be used instead of plugins. Method names in `JSONRPC.ClientPluginBase` and `JSONRPC.ServerPluginBase` are also event names (event handlers have the same params) while `JSONRPC.Server` and `JSONRPC.Client` emit these events.
1414

15-
Events may be more efficient than plugins, if very small performance gains matter. Plugins on the other hand help write readable and maintanable code.
15+
Events may be more efficient than plugins, if very small performance gains matter. Plugins on the other hand help write readable and maintanable code (and are asynchronous).
1616

1717

1818
## Define an endpoint
@@ -74,7 +74,7 @@ class TestEndpoint extends JSONRPC.EndpointBase
7474

7575
Extending the `JSONRPC.Client` base class makes the code more readable.
7676

77-
This client's function names and params correspond to what `TestEndpoint` exports, defined above.
77+
This client's function names and params correspond to what `TestEndpoint` exports (defined above).
7878

7979
```JavaScript
8080
const JSONRPC = require("jsonrpc-bidirectional");
@@ -134,7 +134,7 @@ const JSONRPC = require("jsonrpc-bidirectional");
134134

135135
const testClient = new TestClient("http://localhost/api");
136136

137-
const nDivisionResult = await testClient.divide(2, 1);
137+
const fDivisionResult = await testClient.divide(2, 1);
138138
```
139139
140140
@@ -164,7 +164,7 @@ const webSocketTransport = new JSONRPC.Plugins.Client.WebSocketTransport(ws);
164164
testClient.addPlugin(webSocketTransport);
165165

166166

167-
const nDivisionResult = await testClient.divide(2, 1);
167+
const fDivisionResult = await testClient.divide(2, 1);
168168
```
169169
170170

npm-debug.log.1656483000

Whitespace-only changes.

0 commit comments

Comments
 (0)