Problem with creating a PubSub enabled node in browser

I was trying to use ipfs-pubsub-room in the browser (using a browserified version of the package and the IPFS package from the cdn), 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?

1 Like
// Create IPFS instance

const ipfs = new Ipfs({
repo: ‘/orbitdb/examples/browser/new/ipfs/0.33.1’,
start: true,
preload: {
enabled: false
pubsub: true,
config: {
Addresses: {
Swarm: [
// Use IPFS dev signal server
// ‘/dns4/’,
// Use local signal server
// ‘/ip4/’,

I took that from the orbitdb example code

1 Like