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

fix: fixing circuit-relaying example #1443

Merged
merged 1 commit into from
Jul 17, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions examples/circuit-relaying/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,10 @@
"license": "MIT",
"dependencies": {
"ipfs": "file:../../",
"ipfs-pubsub-room": "~0.3.0"
"ipfs-pubsub-room": "^1.4.0"
},
"devDependencies": {
"aegir": "^14.0.0",
"http-server": "~0.10.0",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One thing though: Why exactly is this going to be removed? Maybe it shouldn't have been there in the first place, but I assume this has been put there for a reason and it doesn't seem to be necessary for this commit to do its work (fixing that example)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was missed. I left it there because the example was initially based on browserify and later moved to parcel.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 got it!

"ipfs-css": "~0.2.0",
"parcel-bundler": "^1.6.2",
"tachyons": "^4.9.1"
Expand Down
14 changes: 7 additions & 7 deletions examples/circuit-relaying/src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ const repo = () => {

const ipfs = new IPFS({
repo: repo(),
EXPERIMENTAL: {
pubsub: true, // enable pubsub
relay: {
enabled: true, // enable relay dialer/listener (STOP)
hop: {
enabled: true // make this node a relay (HOP)
}
relay: {
enabled: true, // enable relay dialer/listener (STOP)
hop: {
enabled: true // make this node a relay (HOP)
}
},
EXPERIMENTAL: {
pubsub: true // enable pubsub
},
config: {
Bootstrap: []
}
Expand Down