chat-app-react-redux-saga-websockets icon indicating copy to clipboard operation
chat-app-react-redux-saga-websockets copied to clipboard

WebSocket connections error

Open Jeffchiucp opened this issue 6 years ago • 2 comments

thank you very much for your tutorial I followed it till the end and I could understand redux and sagas a lot. I'm having this issue though, I tried several solutions I found online but couldnt fix it. To see if I was doing something wrong in my code, I cloned your repository as is and installed all the dependencies and had the same error.

Browser: Chrome v63 WebSocket connection to 'ws://localhost:8989/' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED

Jeffchiucp avatar Mar 13 '18 20:03 Jeffchiucp

Is your IP address set correctly? Check in .../src/sockets/index.js

semsion avatar Mar 25 '18 14:03 semsion

i found at tail end of this video - https://www.youtube.com/watch?v=x_fHXt9V3zQ we need to cd into the /server directory and type node app.js to start the socket server [separate from npm start in the main directory /starting the app]

Ed.

ewellein avatar Apr 24 '18 23:04 ewellein