@dxos/network-manager 0.1.53-main.acf3e0d → 0.1.53-main.b6f5d87

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.
@@ -2198,6 +2198,7 @@ import { ErrorStream as ErrorStream5 } from "@dxos/debug";
2198
2198
  import { PublicKey as PublicKey11 } from "@dxos/keys";
2199
2199
  import { log as log12 } from "@dxos/log";
2200
2200
  import { ConnectionState as ConnectionState4 } from "@dxos/protocols/proto/dxos/mesh/bridge";
2201
+ import { arrayToBuffer } from "@dxos/util";
2201
2202
  var WebRTCTransportProxy = class {
2202
2203
  // prettier-ignore
2203
2204
  constructor(_params) {
@@ -2216,7 +2217,7 @@ var WebRTCTransportProxy = class {
2216
2217
  this._serviceStream.subscribe(async (event) => {
2217
2218
  log12("WebRTCTransportProxy: event", event, {
2218
2219
  file: "webrtc-transport-proxy.ts",
2219
- line: 49,
2220
+ line: 50,
2220
2221
  scope: this,
2221
2222
  callSite: (f, a) => f(...a)
2222
2223
  });
@@ -2237,7 +2238,7 @@ var WebRTCTransportProxy = class {
2237
2238
  } catch (err) {
2238
2239
  log12.catch(err, {}, {
2239
2240
  file: "webrtc-transport-proxy.ts",
2240
- line: 66,
2241
+ line: 67,
2241
2242
  scope: this,
2242
2243
  callSite: (f, a) => f(...a)
2243
2244
  });
@@ -2249,7 +2250,7 @@ var WebRTCTransportProxy = class {
2249
2250
  });
2250
2251
  }, (error) => log12.catch(error, {}, {
2251
2252
  file: "webrtc-transport-proxy.ts",
2252
- line: 72,
2253
+ line: 73,
2253
2254
  scope: this,
2254
2255
  callSite: (f, a) => f(...a)
2255
2256
  }));
@@ -2270,7 +2271,7 @@ var WebRTCTransportProxy = class {
2270
2271
  }
2271
2272
  }
2272
2273
  _handleData(dataEvent) {
2273
- this._params.stream.write(Buffer.from(dataEvent.payload));
2274
+ this._params.stream.write(arrayToBuffer(dataEvent.payload));
2274
2275
  }
2275
2276
  async _handleSignal(signalEvent) {
2276
2277
  await this._params.sendSignal(signalEvent.payload);
@@ -2295,7 +2296,7 @@ var WebRTCTransportProxy = class {
2295
2296
  } catch (err) {
2296
2297
  log12.catch(err, {}, {
2297
2298
  file: "webrtc-transport-proxy.ts",
2298
- line: 123,
2299
+ line: 124,
2299
2300
  scope: this,
2300
2301
  callSite: (f, a) => f(...a)
2301
2302
  });
@@ -2379,4 +2380,4 @@ export {
2379
2380
  WebRTCTransportProxyFactory,
2380
2381
  createTeleportProtocolFactory
2381
2382
  };
2382
- //# sourceMappingURL=chunk-U73XV3EJ.mjs.map
2383
+ //# sourceMappingURL=chunk-A3FS4AKZ.mjs.map