Skip to content Skip to sidebar Skip to footer

Socket.io Not Starting

I'm trying to start socket.io. It won't start and also does not give me any error messages what so ever. It only shows the prompt sign and that's all. The code I'm using is as foll

Solution 1:

You can bind like this:

var io = require('socket.io')(80);

io.on('connection', function (socket) {
  socket.on('ferret', function (name, fn) {
    fn('woot');
  });
});

Source: http://socket.io/docs/


Post a Comment for "Socket.io Not Starting"