@livedigital/client 2.29.0 → 2.29.1

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/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@livedigital/client",
3
3
  "author": "vlprojects",
4
4
  "license": "MIT",
5
- "version": "2.29.0",
5
+ "version": "2.29.1",
6
6
  "private": false,
7
7
  "bugs": {
8
8
  "url": "https://github.com/vlprojects/livedigital-sdk/issues"
@@ -159,9 +159,11 @@ class Network {
159
159
  }
160
160
  }
161
161
 
162
- if (state === 'disconnected' && this.socket.connection?.connected) {
163
- this.logger.warn('sendTransport is closed before websocket is closed');
164
- }
162
+ setTimeout(() => {
163
+ if (this.sendTransport?.connectionState === 'disconnected' && this.socket.connection?.connected) {
164
+ this.logger.warn('sendTransport is closed before websocket is closed');
165
+ }
166
+ }, 3000);
165
167
  });
166
168
  }
167
169
 
@@ -205,9 +207,11 @@ class Network {
205
207
  }
206
208
  }
207
209
 
208
- if (state === 'disconnected' && this.socket.connection?.connected) {
209
- this.logger.warn('receiveTransport is closed before websocket is closed');
210
- }
210
+ setTimeout(() => {
211
+ if (this.receiveTransport?.connectionState === 'disconnected' && this.socket.connection?.connected) {
212
+ this.logger.warn('receiveTransport is closed before websocket is closed');
213
+ }
214
+ }, 3000);
211
215
  });
212
216
  }
213
217