update README

This commit is contained in:
Iuri Matias 2017-01-07 00:10:12 -05:00
parent 13cf92a4f5
commit 5a71342dcd
1 changed files with 11 additions and 1 deletions

View File

@ -351,7 +351,17 @@ EmbarkJS - Communication
**initialization** **initialization**
The current available communications are Whisper and Orbit. Whisper is supported in go-ethereum. To run Orbit ```ipfs daemon --enable-pubsub-experiment```. For Whisper:
```EmbarkJS.Messages.setProvider('whisper')```
For Orbit:
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})```
**listening to messages** **listening to messages**