@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.
@@ -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: 151,
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: 172,
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: 184,
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-CWCBP5UR.mjs.map
4432
+ //# sourceMappingURL=chunk-DLPKHFJ6.mjs.map