# Problem with creating a PubSub enabled node in browser

**URL:** <https://discuss.ipfs.tech/t/problem-with-creating-a-pubsub-enabled-node-in-browser/7187>\
**Category:** js-ipfs\
**Created:** [February 2, 2020, 11:08pm UTC](https://discuss.ipfs.tech/t/problem-with-creating-a-pubsub-enabled-node-in-browser/7187 "2020-02-02T23:08:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![smixqse](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/smixqse/32/3454_2.png) [@smixqse](https://discuss.ipfs.tech/u/smixqse)\
**Post date:** [February 2, 2020, 11:08pm UTC](https://discuss.ipfs.tech/t/problem-with-creating-a-pubsub-enabled-node-in-browser/7187/1 "2020-02-02T23:08:59Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![lyrx](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/lyrx/32/3019_2.png) [@lyrx](https://discuss.ipfs.tech/u/lyrx)\
**Post date:** [February 5, 2020, 5:13pm UTC](https://discuss.ipfs.tech/t/problem-with-creating-a-pubsub-enabled-node-in-browser/7187/2 "2020-02-05T17:13:52Z")

</div>

```
// Create IPFS instance

```

const ipfs = new Ipfs({  
repo: ‘/orbitdb/examples/browser/new/ipfs/0.33.1’,  
start: true,  
preload: {  
enabled: false  
},  
EXPERIMENTAL: {  
pubsub: true,  
},  
config: {  
Addresses: {  
Swarm: [  
// Use IPFS dev signal server  
// ‘/dns4/star-signal.cloud.ipfs.team/wss/p2p-webrtc-star’,  
‘/dns4/ws-star.discovery.libp2p.io/tcp/443/wss/p2p-websocket-star’,  
// Use local signal server  
// ‘/ip4/0.0.0.0/tcp/9090/wss/p2p-webrtc-star’,  
]  
},  
}  
})

I took that from the orbitdb example code
