Update README.md

This commit is contained in:
Iuri Matias 2017-01-08 15:57:23 -05:00 committed by GitHub
parent d1cb5266ca
commit 2afcb34021
1 changed files with 7 additions and 3 deletions

View File

@ -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**