node-rtc-connection 1.0.15 → 1.0.17

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/dist/index.mjs CHANGED
@@ -5084,10 +5084,11 @@ function requireRTCPeerConnection () {
5084
5084
  if (this._sctpTransport.state === 'connected') {
5085
5085
  for (const channel of this._dataChannels.values()) {
5086
5086
  if (channel.readyState === 'connecting') {
5087
- channel._setStateToOpen();
5088
-
5089
- // Hook up channel to network transport
5087
+ // Hook up channel to network transport first
5090
5088
  this._connectChannelToNetwork(channel);
5089
+
5090
+ // Then set state to open (emits 'open' event)
5091
+ channel._setStateToOpen();
5091
5092
  }
5092
5093
  }
5093
5094
  }
@@ -5316,7 +5317,7 @@ function requireRTCPeerConnection () {
5316
5317
  return RTCPeerConnection_1;
5317
5318
  }
5318
5319
 
5319
- var version = "1.0.15";
5320
+ var version = "1.0.17";
5320
5321
  var require$$10 = {
5321
5322
  version: version};
5322
5323