Websockets not working in browser (React)

I’m trying to use libp2p in a React app. I’m following the docs here: js-libp2p/doc/GETTING_STARTED.md at main · libp2p/js-libp2p · GitHub. I’m using websockets for transport since in the docs are used and in the website says that are suported on the browser but when I execute the application I get the following error:

WebSocket Servers can not be created in the browser!
at createListener (htp://localhost:3000/static/js/bundle.js:58339:9)
at WebSockets.createListener (htp://localhost:3000/static/js/bundle.js:58291:72)
at DefaultTransportManager.listen (htp://localhost:3000/static/js/bundle.js:75522:36)
at DefaultTransportManager.afterStart (htp://localhost:3000/static/js/bundle.js:75417:16)
at http://localhost:3000/static/js/bundle.js:72184:36
at Array.map ()
at Proxy._invokeStartableMethod (htp://localhost:3000/static/js/bundle.js:72183:137)
at Proxy.afterStart (htp://localhost:3000/static/js/bundle.js:72195:16)
at Libp2p.start (htp://localhost:3000/static/js/bundle.js:74720:41)
at async createLibp2p (htp://localhost:3000/static/js/bundle.js:74492:5)

Am I missing something or it’s actually not supported?