flaviocopes / chat-app-react-redux-saga-websockets

Build a Chat Application using React, Redux, Redux-Saga and Web Sockets
https://flaviocopes.com
145 stars 66 forks source link

WebSocket connections error #3

Open Jeffchiucp opened 6 years ago

Jeffchiucp commented 6 years ago

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

semsion commented 6 years ago

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

ewellein commented 6 years ago

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.