question

ZongwenFeng-0959 avatar image
0 Votes"
ZongwenFeng-0959 asked vicancy edited

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

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
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

vicancy avatar image
0 Votes"
vicancy answered vicancy edited

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

· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

do you have estimate on when or which version the feature will be available?

0 Votes 0 ·

which SDK language are you using?

0 Votes 0 ·

we are using C# SDK.

0 Votes 0 ·