We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 648c595 commit 8201f25Copy full SHA for 8201f25
src/index.ts
@@ -103,4 +103,10 @@ function registerGlobals(): void {
103
global.RTCRtpReceiver = RTCRtpReceiver;
104
global.RTCRtpSender = RTCRtpSender;
105
global.RTCErrorEvent = RTCErrorEvent;
106
+
107
+ // Ensure audioDeviceModuleEvents is initialized and event listeners are registered
108
+ // This forces the constructor to run and set up native event listeners.
109
+ // We use void operator to explicitly indicate we're intentionally evaluating the expression
110
+ // without using its value, which prevents tree-shaking from removing this reference.
111
+ void audioDeviceModuleEvents;
112
}
0 commit comments