dynamic host settings for websocket