I am trying to connect to a socket.io-client using the following code:
Server:
// Load requirements var http = require(\'http\'), io = require(\'
Also you need to add protocol with path.
change
var socket = io.connect('localhost:8080', {reconnect: true});
to
var socket = io.connect('http://localhost:8080', {reconnect: true});