WebPubSubClientCredential Class

Webpubsub client credential.

Constructor

WebPubSubClientCredential(client_access_url_provider: str | Callable)

Parameters

Name Description
client_access_url_provider
Required

Client access url. If it's callable, it will be called to get the url. If it's str, it will be used directly. Please note that if you provide str, the connection will be closed and can't be reconnected once it is expired.

Methods

get_client_access_url

Get client access url. :return: Client access url. :rtype: str

get_client_access_url

Get client access url. :return: Client access url. :rtype: str

get_client_access_url() -> str