opensips-js 0.1.7 → 0.1.9

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
@@ -499,7 +499,6 @@ declare class ManagedAudioContext {
499
499
  private lastStateChange;
500
500
  private resumeAttempts;
501
501
  constructor();
502
- private logPossibleSuspensionReasons;
503
502
  getContext(): Promise<AudioContext>;
504
503
  get rawContext(): AudioContext;
505
504
  getDebugInfo(): {
@@ -768,6 +767,7 @@ declare interface OpenSIPSEventMap extends UAEventMap {
768
767
  ready: readyListener
769
768
  connection: connectionListener
770
769
  reconnecting: reconnectionListener
770
+ reconnectionAttemptsLimitReached: reconnectionAttemptsLimitListener
771
771
  // JSSIP
772
772
  changeActiveCalls: changeActiveCallsListener
773
773
  changeActiveMessages: changeActiveMessagesListener
@@ -822,6 +822,8 @@ declare class OpenSIPSJS extends UAExtended {
822
822
  private activeConnection;
823
823
  private waitingForSessionHangup;
824
824
  private waitingForSessionTimeout;
825
+ private readonly reconnectionAttemptsLimit;
826
+ private reconnectionAttemptsCounter;
825
827
  audio: AudioModule;
826
828
  msrp: MSRPModule;
827
829
  video: VideoModule;
@@ -837,6 +839,7 @@ declare class OpenSIPSJS extends UAExtended {
837
839
  get sipDomain(): string;
838
840
  use(plugin: BaseNewStreamPlugin | BaseProcessStreamPlugin): void;
839
841
  getPlugin(name: string): BaseNewStreamPlugin | BaseProcessStreamPlugin;
842
+ private reconnect;
840
843
  begin(): this;
841
844
  disconnect(): void;
842
845
  subscribe(type: string, listener: (c: RTCSessionExtended) => void): void;
@@ -858,6 +861,8 @@ declare type OutgoingMSRPSessionListener = (event: OutgoingMSRPSessionEvent) =>
858
861
 
859
862
  declare type readyListener = (value: boolean) => void
860
863
 
864
+ declare type reconnectionAttemptsLimitListener = () => void
865
+
861
866
  declare type reconnectionListener = (value: boolean) => void
862
867
 
863
868
  declare interface RemoteIdentityCallType {
@@ -940,6 +945,7 @@ declare interface TriggerListenerOptions {
940
945
  }
941
946
 
942
947
  declare type UAConfigurationExtended = UAConfiguration & {
948
+ reconnectionAttemptsLimit?: number
943
949
  overrideUserAgent?: (userAgent: string) => string
944
950
  onTransportCallback?: OnTransportCallback
945
951
  }