How to connect to ipfs-cluster from js-ipfs browser

I have been trying to connect my js-ipfs node running in browser with ipfs-cluster running in my local. I tried the below code, but getting no valid addresses error.

await create({
  repo: 'ipfs-' + Math.random(),
  config: {
      Addresses: {
          Swarm: [
            '/dns4/wrtc-star1.par.dwebops.pub/tcp/443/wss/p2p-webrtc-star'
            ]
          }
      },  
    })
// After succesfully connected to a public swarm node, console prints Swarm listening at `url/p2p/mypeerid`
const peerID = peerIdFromString('peerID here'); // import { peerIdFromString } from '@libp2p/peer-id
await ipfs.swarm.connect(peerID); // This throws error