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

Zongwen Feng 21 Reputation points
2021-09-02T16:21:19.643+00:00

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://????..webpubsub.azure.com/client/...".

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?

Thanks!

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
    2021-09-03T06:39:50.573+00:00

    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>";