You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to init geckos client connection in a web worker, but it throws ReferenceError: RTCPeerConnection is not defined. Does not happen when running on the main thread. Is this a limitation of WebRTC or a Geckos bug?
I want to run my socket connections in a web worker, as my main thread is doing a lot of heavy lifting and I don't want it to impact data stream performance
The text was updated successfully, but these errors were encountered:
johnnyrainbow
changed the title
Trying to connect geckos client in Web Worker throws ReferenceError: RTCPeerConnection is not defined
Instantiating a geckos client within a web worker throws a ReferenceError
Jan 25, 2024
According to the specifications [1, 2], navigator.mediaDevices and RTCPeerConnection are not defined for web workers, so WebRTC shouldn't be available on web workers for now.
I am trying to init geckos client connection in a web worker, but it throws ReferenceError: RTCPeerConnection is not defined. Does not happen when running on the main thread. Is this a limitation of WebRTC or a Geckos bug?
I want to run my socket connections in a web worker, as my main thread is doing a lot of heavy lifting and I don't want it to impact data stream performance
The text was updated successfully, but these errors were encountered: