@livedigital/client 2.28.0 → 2.29.0

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.28.0",
5
+ "version": "2.29.0",
6
6
  "private": false,
7
7
  "bugs": {
8
8
  "url": "https://github.com/vlprojects/livedigital-sdk/issues"
@@ -158,6 +158,10 @@ class Network {
158
158
  this.logger.warn('sendTransport.restartIce()');
159
159
  }
160
160
  }
161
+
162
+ if (state === 'disconnected' && this.socket.connection?.connected) {
163
+ this.logger.warn('sendTransport is closed before websocket is closed');
164
+ }
161
165
  });
162
166
  }
163
167
 
@@ -200,6 +204,10 @@ class Network {
200
204
  this.logger.debug('receiveTransport.restartIce()');
201
205
  }
202
206
  }
207
+
208
+ if (state === 'disconnected' && this.socket.connection?.connected) {
209
+ this.logger.warn('receiveTransport is closed before websocket is closed');
210
+ }
203
211
  });
204
212
  }
205
213
 
@@ -221,6 +229,7 @@ class Network {
221
229
  try {
222
230
  const iceParameters = await this.getIceParameters(transport);
223
231
  await transport.restartIce({ iceParameters });
232
+ this.logger.debug('restartIce() completed', { iceParameters });
224
233
  } catch (error) {
225
234
  this.logger.error('restartIce()', { error });
226
235
  }