how to use customer domain name in client access URL for Web PubSub

Zongwen Feng 21 Reputation points

We are trying to use PubSub to send out the websocket URLs to clients, but we would prefer the URL to use our own custom domain instead of "wss://????".

We will have our own service APIs to generate the client access URL for PubSub on demand, so client should just see our custom domain both through our service APIs and websocket connection URLs.

Is there any way currently to choose a custom domain for the client access URL for PubSub? If not, is it possible to put it on the roadmap?


Azure Web PubSub
Azure Web PubSub
An Azure service that provides real-time messaging for web applications using WebSockets and the publish-subscribe pattern.
69 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Liangying Wei 756 Reputation points Microsoft Employee

    Revisited the question, to update the Client Access URL, simply replace the Host name with the custom domain name should work:

    var uriBuilder = new UriBuilder("client_access_url");
    uriBuilder.Host = "<the-custom-domain>";