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

Update 01_Basics.md #146

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Update 01_Basics.md #146

wants to merge 1 commit into from

Conversation

sgnix
Copy link

@sgnix sgnix commented Jul 1, 2021

Update outdated name of pubsub option

Update outdated name of pubsub option
Copy link
Contributor

@CSDUMMI CSDUMMI left a comment

Choose a reason for hiding this comment

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

This follows the documentation of the options.EXPERIMENTAL.

@aphelionz
Copy link
Collaborator

ipnsPubsub is a different thing than just regular pubsub and I think regular pubsub is now enabled by default. Can anybody confirm?

@CSDUMMI
Copy link
Contributor

CSDUMMI commented Sep 15, 2021

Yes. See the CHANGELOG.md 0.38.0-rc.0.

I think that in this case the entire thing should be removed.

@@ -120,7 +120,7 @@ class NewPiecePlease {
this.node = await this.Ipfs.create({
preload: { enabled: false },
repo: './ipfs',
EXPERIMENTAL: { pubsub: true },
EXPERIMENTAL: { ipnsPubsub: true },
Copy link
Contributor

Choose a reason for hiding this comment

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

I suggest removing this line, if pubsub is now enabled by default.

@@ -165,7 +165,7 @@ for now, we include this line to disable them.
- `repo: './ipfs'` designates the path of the repo in Node.js only. In the browser, you can actually remove this line. The
default setting is a folder called `.jsipfs` in your home directory. You will see why we choose this specific location for the
folder later.
- `EXPERIMENTAL: { pubsub: true }` enables [IPFS pubsub](https://blog.ipfs.io/25-pubsub/), which is a method of communicating between nodes and **is required for OrbitDB usage**, despite whether or not we are connected to other peers.
- `EXPERIMENTAL: { ipnsPubsub: true }` enables [IPFS pubsub](https://blog.ipfs.io/25-pubsub/), which is a method of communicating between nodes and **is required for OrbitDB usage**, despite whether or not we are connected to other peers.
Copy link
Contributor

Choose a reason for hiding this comment

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

Perhaps this could be removed and a note added somewhere else, about how OrbitDB uses PubSub.
(Maybe in the Introduction).

@CSDUMMI
Copy link
Contributor

CSDUMMI commented Sep 17, 2021

Is the offline disabling pubsub?

@aphelionz
Copy link
Collaborator

Is the offline disabling pubsub?

I'm going to assume so because swarm peers is disabled if in offline mode.

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants