diff --git a/external/werift b/external/werift index a0070297a..8c924938e 160000 --- a/external/werift +++ b/external/werift @@ -1 +1 @@ -Subproject commit a0070297a4f924fb1e4918184411d70451a1d8a2 +Subproject commit 8c924938e55d9d12f274fe93bc15df781e9ffb6a diff --git a/plugins/webrtc/package-lock.json b/plugins/webrtc/package-lock.json index b1c83ce64..b8292981a 100644 --- a/plugins/webrtc/package-lock.json +++ b/plugins/webrtc/package-lock.json @@ -1,12 +1,12 @@ { "name": "@scrypted/webrtc", - "version": "0.2.14", + "version": "0.2.16", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@scrypted/webrtc", - "version": "0.2.14", + "version": "0.2.16", "dependencies": { "@scrypted/common": "file:../../common", "@scrypted/sdk": "file:../../sdk", diff --git a/plugins/webrtc/package.json b/plugins/webrtc/package.json index bec675a39..e770613d6 100644 --- a/plugins/webrtc/package.json +++ b/plugins/webrtc/package.json @@ -1,6 +1,6 @@ { "name": "@scrypted/webrtc", - "version": "0.2.14", + "version": "0.2.16", "scripts": { "scrypted-setup-project": "scrypted-setup-project", "prescrypted-setup-project": "scrypted-package-json", diff --git a/plugins/webrtc/src/main.ts b/plugins/webrtc/src/main.ts index 970052ac7..3c369d3f0 100644 --- a/plugins/webrtc/src/main.ts +++ b/plugins/webrtc/src/main.ts @@ -649,7 +649,7 @@ export async function fork() { cleanup.promise.finally(() => socket.destroy()); const dc = pc.createDataChannel('rpc'); - dc.message.subscribe(message => socket.write(message)); + dc.onMessage.subscribe(message => socket.write(message)); const debouncer = new DataChannelDebouncer({ send: u8 => dc.send(Buffer.from(u8)), diff --git a/plugins/webrtc/src/werift-util.ts b/plugins/webrtc/src/werift-util.ts index e4e34cf13..8a7601ae6 100644 --- a/plugins/webrtc/src/werift-util.ts +++ b/plugins/webrtc/src/werift-util.ts @@ -54,7 +54,7 @@ export function isLocalIceTransport(pc: RTCPeerConnection) { let isLocalNetwork = true; let destinationId: string; for (const ice of pc.iceTransports) { - const { remoteAddr, localCandidate } = (ice.connection as any).nominated[1]; + const { remoteAddr, localCandidate } = (ice.connection as any).nominated; const [address, port] = remoteAddr; if (!destinationId) destinationId = address;