@opentok/client 2.35.0-alpha.26 → 2.35.0-alpha.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -598,11 +598,14 @@ declare namespace OT {
598
598
  connection?: Connection;
599
599
  sessionId: string;
600
600
 
601
- connect(token: string, callback: (error?: OTError) => void): void;
602
- disconnect(): void;
601
+ connect: {
602
+ (token: string, callback: (error?: OTError) => void): Session;
603
+ promise: (token: string) => Promise<Session>;
604
+ }
605
+ disconnect(): Promise<void>;
603
606
  disableForceMute(): Promise<void>;
604
- forceDisconnect(connection: Connection, callback: (error?: OTError) => void): void;
605
- forceUnpublish(stream: Stream, callback: (error?: OTError) => void): void;
607
+ forceDisconnect(connection: Connection, callback: (error?: OTError) => void): Promise<void>;
608
+ forceUnpublish(stream: Stream, callback: (error?: OTError) => void): Promise<void>;
606
609
  forceMuteStream(stream: Stream): Promise<void>;
607
610
  forceMuteAll(excludedStreams?: Stream[]): Promise<void>;
608
611
  getPublisherForStream(stream: Stream): Publisher | undefined;
@@ -615,7 +618,7 @@ declare namespace OT {
615
618
  signal(
616
619
  signal: { type?: string, data?: string, to?: Connection, retryAfterReconnect?: boolean },
617
620
  callback?: (error?: OTError) => void
618
- ): void;
621
+ ): Promise<void>;
619
622
 
620
623
  subscribe(
621
624
  stream: Stream,