Skip to content

Fix: add null as union to existing peerConnection property type in baseconnection#1149

Open
samspycher wants to merge 1 commit intopeers:masterfrom
samspycher:master
Open

Fix: add null as union to existing peerConnection property type in baseconnection#1149
samspycher wants to merge 1 commit intopeers:masterfrom
samspycher:master

Conversation

@samspycher
Copy link
Copy Markdown

We ran into a production error where peerConnection was null despite the type not allowing it. Indeed the library sets this value to null when cleaning up the connection.

Adding null to the type will inform developers and help them avoid this issue, especially if they are using TS with the strict flag on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant