Expand socket.io-sessionid-patch.js to account for other transports

fixes #2461