@voicenter-team/events-sdk 0.0.18 → 0.0.19

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.
@@ -191,6 +191,7 @@ export declare enum EventsEnum {
191
191
  ALL_USERS_STATUS = "AllUsersStatus",
192
192
  CONNECT = "connect",
193
193
  DISCONNECT = "disconnect",
194
+ CONNECT_ERROR_EVENT = "connect_error",
194
195
  EXTENSION_EVENT = "ExtensionEvent",
195
196
  KEEP_ALIVE = "keepalive",
196
197
  KEEP_ALIVE_RESPONSE = "keepaliveResponse",
@@ -218,7 +219,7 @@ declare class EventsSdkClass {
218
219
  socketIoClass: SocketIoClass;
219
220
  loggerClass: LoggerClass;
220
221
  reconnectOptions: ReconnectOptions;
221
- retryConnection: DebouncedFuncLeading<(server?: ServerParameter, skipLogin?: boolean) => void>;
222
+ retryConnection: DebouncedFuncLeading<(server?: ServerParameter) => void>;
222
223
  private listeners;
223
224
  private allListeners;
224
225
  on<T extends EventTypeNames>(event: T, callback: EventSpecificCallback<T>): void;
@@ -226,7 +227,7 @@ declare class EventsSdkClass {
226
227
  off<T extends EventTypeNames>(event: T, callback: EventSpecificCallback<T>): void;
227
228
  off(event: '*', callback: (data: GenericEventWrapper) => void): void;
228
229
  emit<T extends EventTypeNames>(event: T, data: EventTypeData<T>): void;
229
- connect(server?: ServerParameter, skipLogin?: boolean): void;
230
+ connect(server?: ServerParameter): void;
230
231
  disconnect(): void;
231
232
  clearKeepAliveInterval(): void;
232
233
  private findCurrentServer;
@@ -511,6 +512,7 @@ declare enum LoginType {
511
512
 
512
513
  export declare interface OnlineStatusEvent {
513
514
  isSocketConnected: boolean
515
+ attemptToConnect?: string
514
516
  }
515
517
 
516
518
  export declare interface OpenSIPSEventMap {