fix reqFromSocket for socket.io 1.x