From fb2939538b84f16ddbe6f8b5a591bd63c2a944e4 Mon Sep 17 00:00:00 2001 From: Guillaume FORTAINE Date: Tue, 27 Dec 2022 01:41:46 +0100 Subject: [PATCH] fix(web-pubsub-client): export WebPubSubClientState --- .../review/web-pubsub-client.api.md | 14 ++++++++++++++ .../web-pubsub-client/src/webPubSubClient.ts | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/sdk/web-pubsub/web-pubsub-client/review/web-pubsub-client.api.md b/sdk/web-pubsub/web-pubsub-client/review/web-pubsub-client.api.md index 27cb74a3a259..26e3155480ae 100644 --- a/sdk/web-pubsub/web-pubsub-client/review/web-pubsub-client.api.md +++ b/sdk/web-pubsub/web-pubsub-client/review/web-pubsub-client.api.md @@ -274,6 +274,20 @@ export interface WebPubSubClientProtocol { writeMessage(message: WebPubSubMessage): string | ArrayBuffer; } +// @public (undocumented) +export enum WebPubSubClientState { + // (undocumented) + Connected = "Connected", + // (undocumented) + Connecting = "Connecting", + // (undocumented) + Disconnected = "Disconnected", + // (undocumented) + Recovering = "Recovering", + // (undocumented) + Stopped = "Stopped" +} + // @public export type WebPubSubDataType = /** diff --git a/sdk/web-pubsub/web-pubsub-client/src/webPubSubClient.ts b/sdk/web-pubsub/web-pubsub-client/src/webPubSubClient.ts index f8d29d16272c..5dfae0cedc14 100644 --- a/sdk/web-pubsub/web-pubsub-client/src/webPubSubClient.ts +++ b/sdk/web-pubsub/web-pubsub-client/src/webPubSubClient.ts @@ -42,7 +42,7 @@ import { WebPubSubClientCredential } from "./webPubSubClientCredential"; import { WebSocketClientFactory } from "./websocket/websocketClient"; import { WebSocketClientFactoryLike, WebSocketClientLike } from "./websocket/websocketClientLike"; -enum WebPubSubClientState { +export enum WebPubSubClientState { Stopped = "Stopped", Disconnected = "Disconnected", Connecting = "Connecting",