Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit a681fc5

Browse files
dryajovalanshaw
authored andcommitted
fix: fixing circuit-relaying example (#1443)
Fixes #1423
1 parent 8085f10 commit a681fc5

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

examples/circuit-relaying/package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,10 @@
1515
"license": "MIT",
1616
"dependencies": {
1717
"ipfs": "file:../../",
18-
"ipfs-pubsub-room": "~0.3.0"
18+
"ipfs-pubsub-room": "^1.4.0"
1919
},
2020
"devDependencies": {
2121
"aegir": "^14.0.0",
22-
"http-server": "~0.10.0",
2322
"ipfs-css": "~0.2.0",
2423
"parcel-bundler": "^1.6.2",
2524
"tachyons": "^4.9.1"

examples/circuit-relaying/src/app.js

+7-7
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ const repo = () => {
2828

2929
const ipfs = new IPFS({
3030
repo: repo(),
31-
EXPERIMENTAL: {
32-
pubsub: true, // enable pubsub
33-
relay: {
34-
enabled: true, // enable relay dialer/listener (STOP)
35-
hop: {
36-
enabled: true // make this node a relay (HOP)
37-
}
31+
relay: {
32+
enabled: true, // enable relay dialer/listener (STOP)
33+
hop: {
34+
enabled: true // make this node a relay (HOP)
3835
}
3936
},
37+
EXPERIMENTAL: {
38+
pubsub: true // enable pubsub
39+
},
4040
config: {
4141
Bootstrap: []
4242
}

0 commit comments

Comments
 (0)