Skip to content

Commit

Permalink
fix(web-pubsub-client): export WebPubSubClientState
Browse files Browse the repository at this point in the history
  • Loading branch information
gfortaine committed Dec 27, 2022
1 parent 061d3d6 commit fb29395
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
14 changes: 14 additions & 0 deletions sdk/web-pubsub/web-pubsub-client/review/web-pubsub-client.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
/**
Expand Down
2 changes: 1 addition & 1 deletion sdk/web-pubsub/web-pubsub-client/src/webPubSubClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit fb29395

Please sign in to comment.