@dxos/network-manager 0.7.5-main.9d2a38b → 0.7.5-main.ff8607b
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/lib/browser/{chunk-CWCBP5UR.mjs → chunk-DLPKHFJ6.mjs} +7 -5
- package/dist/lib/browser/{chunk-CWCBP5UR.mjs.map → chunk-DLPKHFJ6.mjs.map} +3 -3
- package/dist/lib/browser/index.mjs +1 -1
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/testing/index.mjs +1 -1
- package/dist/lib/node/{chunk-T4XXHUEY.cjs → chunk-ISFD3IKZ.cjs} +10 -8
- package/dist/lib/node/{chunk-T4XXHUEY.cjs.map → chunk-ISFD3IKZ.cjs.map} +3 -3
- package/dist/lib/node/index.cjs +23 -23
- package/dist/lib/node/index.cjs.map +1 -1
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/testing/index.cjs +14 -14
- package/dist/lib/node-esm/{chunk-3UQQG4X3.mjs → chunk-6GKO4K6C.mjs} +7 -5
- package/dist/lib/node-esm/{chunk-3UQQG4X3.mjs.map → chunk-6GKO4K6C.mjs.map} +3 -3
- package/dist/lib/node-esm/index.mjs +1 -1
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/testing/index.mjs +1 -1
- package/dist/types/src/transport/webrtc/rtc-transport-channel.d.ts.map +1 -1
- package/package.json +18 -18
- package/src/transport/webrtc/rtc-transport-channel.ts +3 -1
|
@@ -3179,7 +3179,7 @@ var RtcTransportChannel = class extends Resource {
|
|
|
3179
3179
|
});
|
|
3180
3180
|
await this.close();
|
|
3181
3181
|
},
|
|
3182
|
-
onmessage: (event) => {
|
|
3182
|
+
onmessage: async (event) => {
|
|
3183
3183
|
if (!this._stream) {
|
|
3184
3184
|
log12.warn("ignoring message on a closed channel", void 0, {
|
|
3185
3185
|
F: __dxlog_file13,
|
|
@@ -3192,6 +3192,8 @@ var RtcTransportChannel = class extends Resource {
|
|
|
3192
3192
|
let data = event.data;
|
|
3193
3193
|
if (data instanceof ArrayBuffer) {
|
|
3194
3194
|
data = Buffer.from(data);
|
|
3195
|
+
} else if (data instanceof Blob) {
|
|
3196
|
+
data = Buffer.from(await data.arrayBuffer());
|
|
3195
3197
|
}
|
|
3196
3198
|
this._stream.push(data);
|
|
3197
3199
|
},
|
|
@@ -3212,7 +3214,7 @@ var RtcTransportChannel = class extends Resource {
|
|
|
3212
3214
|
if (!this._channel) {
|
|
3213
3215
|
log12.warn("writing to a channel after a connection was closed", void 0, {
|
|
3214
3216
|
F: __dxlog_file13,
|
|
3215
|
-
L:
|
|
3217
|
+
L: 153,
|
|
3216
3218
|
S: this,
|
|
3217
3219
|
C: (f, a) => f(...a)
|
|
3218
3220
|
});
|
|
@@ -3235,7 +3237,7 @@ var RtcTransportChannel = class extends Resource {
|
|
|
3235
3237
|
if (this._streamDataFlushedCallback !== null) {
|
|
3236
3238
|
log12.error("consumer trying to write before we are ready for more data", void 0, {
|
|
3237
3239
|
F: __dxlog_file13,
|
|
3238
|
-
L:
|
|
3240
|
+
L: 174,
|
|
3239
3241
|
S: this,
|
|
3240
3242
|
C: (f, a) => f(...a)
|
|
3241
3243
|
});
|
|
@@ -3251,7 +3253,7 @@ var RtcTransportChannel = class extends Resource {
|
|
|
3251
3253
|
} catch (error) {
|
|
3252
3254
|
log12.catch(error, void 0, {
|
|
3253
3255
|
F: __dxlog_file13,
|
|
3254
|
-
L:
|
|
3256
|
+
L: 186,
|
|
3255
3257
|
S: this,
|
|
3256
3258
|
C: (f, a) => f(...a)
|
|
3257
3259
|
});
|
|
@@ -4427,4 +4429,4 @@ export {
|
|
|
4427
4429
|
RtcTransportService,
|
|
4428
4430
|
createTeleportProtocolFactory
|
|
4429
4431
|
};
|
|
4430
|
-
//# sourceMappingURL=chunk-
|
|
4432
|
+
//# sourceMappingURL=chunk-DLPKHFJ6.mjs.map
|