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
for reference's sake and google stumbles:- in case anyone is still using v0.9 (or possibly earlier) you can access this info from client side like this:
var socket = io.connect();
console.log(socket.socket.transport.name); //log the name of the transport being used.
answer found on google groups https://groups.google.com/forum/#!topic/socket_io/yx_9wJiiAg0