I am using mean.io v 0.4.0 and trying to setup socket.io with it. I want to socket.io to listen to the nodejs server. There is a post talking about it's setup here but it doesn't fully solve my problem.
socket.io
needs nodejs server
object to listen to it like this. io.listen(server)
mean.io
doesn't provide server
object atleast I couldn't find it.
I tried to io.listen(httpServer)
in mean.js and then in my socket-controller.js
I would simply do
io.Socket.on('connection', function(socket){
socket.emit('message', {'message': 'hello world'});
});
But it didn't works out. My browser keeps on waiting whenever I hit the server.