From 56e95f345845d9dd43c8e7241382619c886bd18f Mon Sep 17 00:00:00 2001 From: Sam Spycher Date: Wed, 11 Oct 2023 18:04:09 +0200 Subject: [PATCH] fix: add null as union to existing peerConnection type --- lib/baseconnection.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/baseconnection.ts b/lib/baseconnection.ts index 8c0c18402..7f08df77f 100644 --- a/lib/baseconnection.ts +++ b/lib/baseconnection.ts @@ -45,7 +45,7 @@ export abstract class BaseConnection< readonly metadata: any; connectionId: string; - peerConnection: RTCPeerConnection; + peerConnection: RTCPeerConnection | null; dataChannel: RTCDataChannel; abstract get type(): ConnectionType;