Found a way to get domain from ws client
Derive ws connection URL from window.location