@vonage/client-sdk 1.3.0-alpha.5 → 1.3.0-alpha.6

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.
@@ -989,13 +989,15 @@ export declare namespace vonage {
989
989
  interface SocketClientJS {
990
990
  delegate?: Nullable<vonage.SocketClientDelegateJS>;
991
991
  emit(type: string, msg: Nullable<Json>, callback: (p0: Nullable<Error>, p1: Nullable<string>) => void): void;
992
- connect(host: string, path: string, reconnectionAttempts: any/* kotlin.Number */, reconnectionDelay: any/* kotlin.Number */, randomizationFactor: any/* kotlin.Number */, query: string): void;
992
+ connect(host: string, path: string, reconnectionAttempts: any/* kotlin.Number */, reconnectionDelay: any/* kotlin.Number */, randomizationFactor: any/* kotlin.Number */, token: string, sessionId: Nullable<string>, query: string): void;
993
993
  disconnect(): void;
994
- setConnectParamsSocketConfig(token: string): void;
994
+ setConnectParamsSocketConfig(sessionId: string, token: string): void;
995
+ setSocketSessionId(sessionId: string): void;
996
+ setSocketToken(token: string): void;
995
997
  startVerifyResponseTimer(milliseconds: any/* kotlin.Number */, callback: () => void): void;
996
998
  }
997
999
  interface SocketClientDelegateJS {
998
- didReceiveNewSocketEvent(type: string, body: string): void;
1000
+ didReceiveNewSocketEvent(body: string): void;
999
1001
  didReceiveNewSocketConnectionStatusEvent(type: string, reason: Nullable<string>, timestamp: any/* kotlin.Number */, retryNumber: Nullable<number>): void;
1000
1002
  }
1001
1003
  interface MediaClientJS {
@@ -3,10 +3,15 @@ import vonage from '../utils/vonage';
3
3
  declare class SocketClient implements vonage.SocketClientJS {
4
4
  delegate: KMPPackage.Nullable<vonage.SocketClientDelegateJS>;
5
5
  private socket;
6
+ private token;
7
+ private sessionId;
8
+ private setQuery;
6
9
  emit(type: string, msg: unknown, _callback: (p0: KMPPackage.Nullable<Error>, p1: KMPPackage.Nullable<string>) => void): void;
7
- connect(host: string, path: string, reconnectionAttempts: number, reconnectionDelay: number, randomizationFactor: number, query: string): void;
10
+ connect(host: string, path: string, reconnectionAttempts: number, reconnectionDelay: number, randomizationFactor: number, token: string, sessionId: KMPPackage.Nullable<string>, query: string): void;
8
11
  disconnect(): void;
9
12
  startVerifyResponseTimer(milliseconds: number, callback: () => void): void;
10
- setConnectParamsSocketConfig(token: string): void;
13
+ setConnectParamsSocketConfig(sessionId: string, token: string): void;
14
+ setSocketSessionId(sessionId: string): void;
15
+ setSocketToken(token: string): void;
11
16
  }
12
17
  export default SocketClient;