@voicenter-team/events-sdk 0.0.100 → 0.0.102

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.
@@ -354,7 +354,7 @@ declare class EventsSdkClass {
354
354
  on(event: '*', callback: (data: GenericEventWrapper) => void): void;
355
355
  emit<T extends ServerEmitEventTypeNames>(event: T, ...args: Parameters<ServerEmitEventCallbackRegistry[T]>): void;
356
356
  connect(serverParameter: ServerParameter): void;
357
- disconnect(): void;
357
+ disconnect(): Promise<void>;
358
358
  clearKeepAliveInterval(): void;
359
359
  private findMainServer;
360
360
  private findNextServer;
@@ -797,7 +797,7 @@ declare class LoggerClass {
797
797
  private storageLogger;
798
798
  init(): void;
799
799
  start(): Promise<void>;
800
- stop(): void;
800
+ stop(): Promise<void>;
801
801
  log(data: LoggerDataPartial): void;
802
802
  sdkConnectionSuccess(): void;
803
803
  sdkDisconnect(reasons: string[]): void;
@@ -2910,8 +2910,8 @@ class rt {
2910
2910
  async start() {
2911
2911
  this.storageLogger && await this.storageLogger.start();
2912
2912
  }
2913
- stop() {
2914
- this.storageLogger && this.storageLogger.stop();
2913
+ async stop() {
2914
+ this.storageLogger && await this.storageLogger.stop();
2915
2915
  }
2916
2916
  log(t) {
2917
2917
  if (this.eventsSdkClass.options.useLogger)
@@ -3145,8 +3145,8 @@ class ct {
3145
3145
  }
3146
3146
  this.socketIoClass.initSocketConnection(), this.socketIoClass.initSocketEvents(), this.socketIoClass.initKeepAlive();
3147
3147
  }
3148
- disconnect() {
3149
- this.socketIoClass.doReconnect = !1, this.socketIoClass.closeAllConnections(), this.loggerClass.stop();
3148
+ async disconnect() {
3149
+ this.socketIoClass.doReconnect = !1, this.socketIoClass.closeAllConnections(), await this.loggerClass.stop();
3150
3150
  }
3151
3151
  clearKeepAliveInterval() {
3152
3152
  this.socketIoClass.clearKeepAliveInterval();