@azure/web-pubsub-client package
類別
| InvocationError |
當召喚失敗或被取消時會拋出錯誤。 |
| SendMessageError |
傳送訊息失敗時發生錯誤 |
| WebPubSubClient |
WebPubSub 用戶端 |
介面
類型別名
| DownstreamMessageType |
下游訊息的類型 |
| JSONTypes |
可串行化並傳送為 JSON 的類型。 |
| RetryMode |
描述重試模式類型 |
| UpstreamMessageType |
上游訊息的類型 |
| WebPubSubDataType |
數據類型 |
| WebPubSubMessage |
Web pubsub 訊息 |
函式
| Web |
傳回 「json.webpubsub.azure.v1」 通訊協定 |
| Web |
傳回 「json.reliable.webpubsub.azure.v1」 通訊協定 |
函式詳細資料
WebPubSubJsonProtocol()
傳回 「json.webpubsub.azure.v1」 通訊協定
function WebPubSubJsonProtocol(): WebPubSubClientProtocol
傳回
WebPubSubJsonReliableProtocol()
傳回 「json.reliable.webpubsub.azure.v1」 通訊協定
function WebPubSubJsonReliableProtocol(): WebPubSubClientProtocol