On the file client/utils/onOnline.ts and other locations, using the removeEventListener function without checking can cause the app to crash with other RTC libraries.
if (typeof document !== 'undefined' && document.addEventListener) {
document.addEventListener('online', callback);
return () => document.removeEventListener('online', callback);
}