ongmin / webchat

Exercise: Webchat with socket.io
ISC License
1 stars 0 forks source link

Unable to load socket.io #1

Open ongmin opened 8 years ago

ongmin commented 8 years ago

Code review needed @cbas

Hello Seb,

When I .listen to the port within the index.js file, I don't have an issue. However, when I try to begin with server.js to get the process.env port, I get an issue in my console.

Console: GET http://localhost:8080/socket.io/?EIO=3&transport=polling&t=1451508432763-19 404 (Not Found)

Essentially it tries to get socket.io from the port environment that its hosted in (localhost:8080). I think this is the issue. How can I avoid this?

Thank you.

Min

sebdeckers commented 8 years ago

Create a pull request from your branch into master. That way we can discuss on the actual code.