mirror of https://github.com/embarklabs/embark.git
Merge branch 'develop' of github.com:iurimatias/embark-framework into develop
This commit is contained in:
commit
8a91d2854e
10
README.md
10
README.md
|
@ -353,15 +353,19 @@ EmbarkJS - Communication
|
|||
|
||||
For Whisper:
|
||||
|
||||
```EmbarkJS.Messages.setProvider('whisper')```
|
||||
```Javascript
|
||||
EmbarkJS.Messages.setProvider('whisper')
|
||||
```
|
||||
|
||||
For Orbit:
|
||||
|
||||
You'll need to use IPFS from master and run it as: ```ipfs daemon --enable-pubsub-experiment```.
|
||||
You'll need to use IPFS from master and run it as: ```ipfs daemon --enable-pubsub-experiment```
|
||||
|
||||
then set the provider:
|
||||
|
||||
```EmbarkJS.Messages.setProvider('orbit', {server: 'localhost', port: 5001})```
|
||||
```Javascript
|
||||
EmbarkJS.Messages.setProvider('orbit', {server: 'localhost', port: 5001})
|
||||
```
|
||||
|
||||
**listening to messages**
|
||||
|
||||
|
|
Loading…
Reference in New Issue