This question has been asked before, but that answer is no longer correct. I'd like to determine transport type at runtime - if I have a ws connection, I'll route my REST requests over the websocket, and if I'm on polling, I'll do the old-fashioned http requests.
I can test io().socket.io.engine.transport.constructor.name
in the client, which works (I get either WS or XHR as those are the constructor names), but that feels awfully brittle. It'd be rad if there were a standard way to do this.