Skip to content

Commit

Permalink
fix(web-pubsub-client): expose WebPubSubClientState
Browse files Browse the repository at this point in the history
  • Loading branch information
gfortaine committed Dec 30, 2022
1 parent a8d0eb2 commit c5f2531
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,8 @@ export class WebPubSubClient {
sendEvent(eventName: string, content: JSONTypes | ArrayBuffer, dataType: WebPubSubDataType, options?: SendEventOptions): Promise<WebPubSubResult>;
sendToGroup(groupName: string, content: JSONTypes | ArrayBuffer, dataType: WebPubSubDataType, options?: SendToGroupOptions): Promise<void | WebPubSubResult>;
start(options?: StartOptions): Promise<void>;
// (undocumented)
_state: WebPubSubClientState;
stop(): void;
}

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 @@ -69,7 +69,7 @@ export class WebPubSubClient {
private readonly _reconnectRetryPolicy: RetryPolicy;

private readonly _emitter: EventEmitter = new EventEmitter();
private _state: WebPubSubClientState;
public _state: WebPubSubClientState;
private _isStopping: boolean = false;
private _ackId: number;

Expand Down

0 comments on commit c5f2531

Please sign in to comment.