debugger22 / github-audio

Listen to music generated by events happening across GitHub :octocat: 🎷

Home Page:https://github.audio

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SocketIO connection refused

prashant-andani opened this issue · comments

Once the node serve is running and hit the http://localhost:8000
http://localhost/socket.io/?EIO=3&transport=polling&t=LUVnoRW
Connection Refused - i.e ERR_CONNECTION_REFUSED
I'm i missing anything??

Change https://github.com/debugger22/github-audio/blob/master/app/public/js/main.js#L35 to

var socket = io(document.location.hostname + ":8000");

Sorry for not documenting it.

Feel free to close the issue if it works for you.

Yup ... it works now 👍 .. Thank you :)