I need to know what transport method a client is using for some conditional statements on the nodeJS serverside.
Does anyone know how I can get that
As of Socket.IO 1.0:
Client:
socket.on('connect', function() { console.log(socket.io.engine.transport.name); }
Server:
io.sockets.on('connection', function(socket) { console.log(socket.conn.transport.name); }