mirror of https://github.com/embarklabs/embark.git
Update README.md
This commit is contained in:
parent
d1cb5266ca
commit
2afcb34021
10
README.md
10
README.md
|
@ -353,15 +353,19 @@ EmbarkJS - Communication
|
||||||
|
|
||||||
For Whisper:
|
For Whisper:
|
||||||
|
|
||||||
```EmbarkJS.Messages.setProvider('whisper')```
|
```Javascript
|
||||||
|
EmbarkJS.Messages.setProvider('whisper')
|
||||||
|
```
|
||||||
|
|
||||||
For Orbit:
|
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:
|
then set the provider:
|
||||||
|
|
||||||
```EmbarkJS.Messages.setProvider('orbit', {server: 'localhost', port: 5001})```
|
```Javascript
|
||||||
|
EmbarkJS.Messages.setProvider('orbit', {server: 'localhost', port: 5001})
|
||||||
|
```
|
||||||
|
|
||||||
**listening to messages**
|
**listening to messages**
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue