BenMQ opened this issue 11 years ago · 2 comments
In main.js, do this
window.socket = io.connect(":4321/");
However the port number needs to be a variable that we serve from app.js, instead of hard-coded like the example above.
see 0a3aa2e
http://stackoverflow.com/questions/16098397/pass-variables-to-javascript-in-expressjs