Fix HTTP/HTTPS loading of external socket.io