@voicenter-team/events-sdk 0.0.108 → 0.0.110

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.
@@ -2786,10 +2786,10 @@ class nt {
2786
2786
  */
2787
2787
  setupNetworkListeners() {
2788
2788
  const t = () => this.closeAllConnections(), e = () => this.handleNetworkOnline();
2789
- typeof window < "u" && (window.addEventListener("offline", t), window.addEventListener("online", e), this.networkCleanup.push(
2789
+ typeof window < "u" && "addEventListener" in window && typeof window.addEventListener == "function" ? (window.addEventListener("offline", t), window.addEventListener("online", e), this.networkCleanup.push(
2790
2790
  () => window.removeEventListener("offline", t),
2791
2791
  () => window.removeEventListener("online", e)
2792
- )), typeof self < "u" && typeof window > "u" && typeof global > "u" && (self.addEventListener("offline", t), self.addEventListener("online", e), this.networkCleanup.push(
2792
+ )) : typeof self < "u" && "addEventListener" in self && typeof self.addEventListener == "function" && (self.addEventListener("offline", t), self.addEventListener("online", e), this.networkCleanup.push(
2793
2793
  () => self.removeEventListener("offline", t),
2794
2794
  () => self.removeEventListener("online", e)
2795
2795
  ));
@@ -3134,7 +3134,10 @@ class rt {
3134
3134
  };
3135
3135
  this.eventsSdkClass.options.debugOption && (s[this.eventsSdkClass.options.debugOption].includes(t) || this.eventsSdkClass.options.debugOption === te.FULL) && this.log({
3136
3136
  Message: `Event name: ${t}`,
3137
- Body: e,
3137
+ Body: {
3138
+ ...this.getStaticData(),
3139
+ ...e
3140
+ },
3138
3141
  ActionName: Y.WSCONNECT,
3139
3142
  isShowClient: !1,
3140
3143
  Status: "Successful",
@@ -3142,6 +3145,11 @@ class rt {
3142
3145
  LogType: Q.INFO
3143
3146
  });
3144
3147
  }
3148
+ getStaticData() {
3149
+ return {
3150
+ SocketId: this.eventsSdkClass.socketIoClass && this.eventsSdkClass.socketIoClass.io ? this.eventsSdkClass.socketIoClass.io.id : ""
3151
+ };
3152
+ }
3145
3153
  }
3146
3154
  class st {
3147
3155
  constructor(t) {