added websocket subdomain support