Skip to content

Commit 5a71342

Browse files
committed
update README
1 parent 13cf92a commit 5a71342

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,17 @@ EmbarkJS - Communication
351351

352352
**initialization**
353353

354-
The current available communications are Whisper and Orbit. Whisper is supported in go-ethereum. To run Orbit ```ipfs daemon --enable-pubsub-experiment```.
354+
For Whisper:
355+
356+
```EmbarkJS.Messages.setProvider('whisper')```
357+
358+
For Orbit:
359+
360+
You'll need to use IPFS from master and run it as: ```ipfs daemon --enable-pubsub-experiment```.
361+
362+
then set the provider:
363+
364+
```EmbarkJS.Messages.setProvider('orbit', {server: 'localhost', port: 5001})```
355365

356366
**listening to messages**
357367

0 commit comments

Comments
 (0)