opensips-js 0.1.30 → 0.1.32

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.
package/dist/index.d.ts CHANGED
@@ -380,7 +380,12 @@ declare type conferenceStartListener = () => void
380
380
 
381
381
  declare type connectionListener = (value: boolean) => void
382
382
 
383
- declare type connectionStateChangeListener = (event: string) => void
383
+ declare type connectionStateChangeListener = (event: ConnectionStateChangeType) => void
384
+
385
+ declare type ConnectionStateChangeType = {
386
+ session: RTCSessionExtended,
387
+ connectionState: string
388
+ }
384
389
 
385
390
  declare interface ConnectOptions {
386
391
  extraHeaders?: Array<string>;
@@ -529,9 +534,11 @@ declare type ListenerEventType = EndEvent | IncomingEvent | OutgoingEvent | Inco
529
534
  declare type ListenersKeyType = keyof OpenSIPSEventMap
530
535
 
531
536
  declare class ManagedAudioContext {
532
- private readonly context;
537
+ private context;
533
538
  private resumePromise;
534
539
  constructor();
540
+ private setupErrorHandling;
541
+ private createNewContext;
535
542
  getContext(): Promise<AudioContext>;
536
543
  }
537
544