Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
David Revay authored Mar 20, 2017
1 parent 83630ff commit 7f69377
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ The RPC system needs to be setup in every electron thread you which to communica

Main Electron Thread:
```javascript
import { RpcIpcManger, rpc } from 'rpc';
import { RpcIpcManger } from 'rpc';

// Specify the scope (this should be unique)
const scope = 'electron';
Expand All @@ -34,7 +34,7 @@ Main Electron Thread:

Renderer Thread:
```javascript
import { RpcIpcManger } from 'rpc';
import { RpcIpcManger, rpc } from 'rpc';

/ Specify the scope (this should be unique)
const scope = 'renderer1';
Expand Down Expand Up @@ -69,8 +69,6 @@ Note: This example shows renderer -> electron comms. The code is pretty much ide
This will emit a Remote Procedure Call action (which will travel
to all threads). This will run a function if scope is correct.

Note: This will return a function which you must run.

```
@param string scope - The destination threads scope (electron, main-renderer etc)
@param string functionPathInLib - The path to the function in the destination thread's lib
Expand Down

0 comments on commit 7f69377

Please sign in to comment.