I have just started with socket.io, its giving JS Error on client page
io is not defined
How to fix this ?
Wrap your client code on a '$(document).ready()' for jQuery or another library similar function. This way you'll be sure your code runs after the library beeing loaded.