UNPKG

rtc-link

Version:

A library for managing WebRTC connections with multiplexed streams, anti-glare handling, and streamlined data channel setup.

9 lines 293 B
export function closeRTCListeners(rtc) { // Cleanup for any subscriptions or event listeners on rtc before switching if (rtc) { rtc.onicecandidate = null; rtc.oniceconnectionstatechange = null; rtc.onnegotiationneeded = null; rtc.ontrack = null; } }