I have just started with socket.io, its giving JS Error on client page
io is not defined
How to fix this ?
I had to do this. (For the client.)
function setup() { var socket; socket = io.connect('http://localhost:3000'); } /* This solved my error. */