What I do is use Node JS as a reverse proxy in nginx, which then allows me to serve up my
socket.io through an nginx config.
However, I tried to get
socket.io working with a test project, and all I did was add in
socket.io to the package.json file, then added this code into initializers/socketio.js
var sio = require('socket.io');
module.exports = function (compound) {
var io = compound.io = sio.listen(compound.server, {resource: '/socket.io'});
io.set('transports', [
'websocket',
'xhr-polling',
'jsonp-polling'
]);
return io;
};
And I was able to access
0.0.0.0:3000/socket.io, which gave me the message "Welcome to
socket.io."
Hope that helps.