fixed socket.io session upgrade