hack for ngSocket and custom subdomain