Hey, when starting cypress tests in electron everything works ok, firing up in the browser throws an error on the console in a loop:
Copy code
shell
WebSocket connection to 'ws://localhost:PORT/__socket/?EIO=4&transport=websocket' failed
Does anyone know how to solve this problem?
f
famous-energy-17408
03/15/2023, 1:20 AM
hey, the problem is likely due to the browser being unable to establish a WebSocket connection to your local server. try this:
- Check the port number: Ensure that the port specified in the WebSocket URL (ws://localhost:PORT) is the same as the port your local server is running on. Replace PORT with the correct port number if needed.
- Make sure your server is running and properly configured to accept WebSocket connections. If it's not running, start it and try running the tests again.