@dxos/network-manager 0.7.5-labs.35b4b42 → 0.7.5-labs.a279d8c

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: async (event) => {
3182
+ onmessage: (event) => {
3183
3183
  if (!this._stream) {
3184
3184
  log12.warn("ignoring message on a closed channel", void 0, {
3185
3185
  F: __dxlog_file13,
@@ -3192,8 +3192,6 @@ 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());
3197
3195
  }
3198
3196
  this._stream.push(data);
3199
3197
  },
@@ -3214,7 +3212,7 @@ var RtcTransportChannel = class extends Resource {
3214
3212
  if (!this._channel) {
3215
3213
  log12.warn("writing to a channel after a connection was closed", void 0, {
3216
3214
  F: __dxlog_file13,
3217
- L: 153,
3215
+ L: 151,
3218
3216
  S: this,
3219
3217
  C: (f, a) => f(...a)
3220
3218
  });
@@ -3237,7 +3235,7 @@ var RtcTransportChannel = class extends Resource {
3237
3235
  if (this._streamDataFlushedCallback !== null) {
3238
3236
  log12.error("consumer trying to write before we are ready for more data", void 0, {
3239
3237
  F: __dxlog_file13,
3240
- L: 174,
3238
+ L: 172,
3241
3239
  S: this,
3242
3240
  C: (f, a) => f(...a)
3243
3241
  });
@@ -3253,7 +3251,7 @@ var RtcTransportChannel = class extends Resource {
3253
3251
  } catch (error) {
3254
3252
  log12.catch(error, void 0, {
3255
3253
  F: __dxlog_file13,
3256
- L: 186,
3254
+ L: 184,
3257
3255
  S: this,
3258
3256
  C: (f, a) => f(...a)
3259
3257
  });
@@ -4431,4 +4429,4 @@ export {
4431
4429
  RtcTransportService,
4432
4430
  createTeleportProtocolFactory
4433
4431
  };
4434
- //# sourceMappingURL=chunk-2FLPMZN3.mjs.map
4432
+ //# sourceMappingURL=chunk-CQJOGX55.mjs.map