JS-IPFS The dial request has no valid addresses on ipfs.swarm.connect

I am trying to connect my js-ipfs node in the browser to the kubo node running in docker. When I call await ipfs.swarm.connect(new Multiaddr(‘/ip4/127.0.0.1/tcp/4003/ws/p2p/DOCKER-KUBO-NODE-ID’));
I get the following error: Error: The dial request has no valid addresses.
Any help ?
In kubo config under swarm I appended “/ip4/127.0.0.1/tcp/4003/ws” and mapped the port in docker
I am trying to fetch a file from kubo in js-ipfs