There is site.com/ . There is a node.js server. How to hear events on site.com/ through socket.io , running node.js on your server? I think it should be something like:
var io = require('socket.io-client'); var socket = io('http://site.com/'); socket.on('connected', function(socket){console.log('ok');}); Thank you in advance!