Generalize socket.io target hostname