mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-11 06:25:57 +00:00
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:
|
||||
|
||||
```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…
x
Reference in New Issue
Block a user