y-openrtc 2.3.1 → 2.4.0

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.
Files changed (2) hide show
  1. package/dist/provider.js +0 -16
  2. package/package.json +2 -2
package/dist/provider.js CHANGED
@@ -614,22 +614,6 @@ export class YProvider {
614
614
  async sendControlToConnection(connection, payload) {
615
615
  const encrypted = await encryptFrame(payload, await this.keyPromise);
616
616
  this.diagnostics.openrtcSent += 1;
617
- const transportSender = connection;
618
- if (typeof transportSender.sendOnTransport === 'function') {
619
- try {
620
- await transportSender.sendOnTransport('iroh-relay', encrypted);
621
- return;
622
- }
623
- catch {
624
- try {
625
- await transportSender.sendOnTransport('iroh', encrypted);
626
- return;
627
- }
628
- catch {
629
- // Fall back to the default transport order.
630
- }
631
- }
632
- }
633
617
  await connection.send(encrypted);
634
618
  }
635
619
  sendControlBestEffort(connection, payload) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "y-openrtc",
3
- "version": "2.3.1",
3
+ "version": "2.4.0",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -43,7 +43,7 @@
43
43
  },
44
44
  "dependencies": {
45
45
  "lib0": "^0.2.114",
46
- "openrtc": "^2.3.1",
46
+ "openrtc": "^2.4.0",
47
47
  "y-protocols": "^1.0.6"
48
48
  },
49
49
  "peerDependencies": {