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 Connection Refused #1

Open FacundoMalgieri opened 6 years ago

FacundoMalgieri commented 6 years ago

Hello

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

Hope you can help me, thanks!

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.