node-rtc-connection 1.0.15 → 1.0.16
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.cjs +5 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +5 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/peerconnection/RTCPeerConnection.js +4 -3
package/dist/index.cjs
CHANGED
|
@@ -5086,10 +5086,11 @@ function requireRTCPeerConnection () {
|
|
|
5086
5086
|
if (this._sctpTransport.state === 'connected') {
|
|
5087
5087
|
for (const channel of this._dataChannels.values()) {
|
|
5088
5088
|
if (channel.readyState === 'connecting') {
|
|
5089
|
-
channel
|
|
5090
|
-
|
|
5091
|
-
// Hook up channel to network transport
|
|
5089
|
+
// Hook up channel to network transport first
|
|
5092
5090
|
this._connectChannelToNetwork(channel);
|
|
5091
|
+
|
|
5092
|
+
// Then set state to open (emits 'open' event)
|
|
5093
|
+
channel._setStateToOpen();
|
|
5093
5094
|
}
|
|
5094
5095
|
}
|
|
5095
5096
|
}
|
|
@@ -5318,7 +5319,7 @@ function requireRTCPeerConnection () {
|
|
|
5318
5319
|
return RTCPeerConnection_1;
|
|
5319
5320
|
}
|
|
5320
5321
|
|
|
5321
|
-
var version = "1.0.
|
|
5322
|
+
var version = "1.0.16";
|
|
5322
5323
|
var require$$10 = {
|
|
5323
5324
|
version: version};
|
|
5324
5325
|
|