Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enabling Pubsub in the browser #74

Open
smixqse opened this issue Jan 31, 2020 · 1 comment
Open

Enabling Pubsub in the browser #74

smixqse opened this issue Jan 31, 2020 · 1 comment

Comments

@smixqse
Copy link

smixqse commented Jan 31, 2020

I was trying to use ipfs-pubsub-room in the browser (using a browserified version of the package, not my entire script), and i keep getting the error: Uncaught Error: This IPFS node does not have pubsub.. I know the configuration used to be EXPERIMENTAL: {pubsub: true}, but it seems like it changed and i don't know how to make it work in the browser anymore. What is the correct way to do it?

@DougAnderson444
Copy link

As of version 0.38.0 the pubsub flag shouldn't be necessary (https://blog.ipfs.io/070-js-ipfs-0-38/)

That said, I am struggling to get this demo to work, just like you. I compile it with browserify, but the pubsub doesn't hear it beyond it's own tab. Even with different repo names. I'm kind of stumped at this point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants