Merge branch 'develop' of github.com:iurimatias/embark-framework into develop

This commit is contained in:
Iuri Matias 2017-01-08 16:17:31 -05:00
commit 8a91d2854e
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**