-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consider merging transferable RTCDataChannel from webrtc-extensions #2986
Comments
re |
I don't think we have any commitment to transfer to a non-dedicated worker. |
if so, this would suggest integrating the changes in webrtc-extensions limiting it to |
Indeed, supporting As a side note: a Integrating |
The discussions we've had about PeerConnection indicate that there's some interest in making PeerConnection available in a worker, but that the cognitive and implementation problems of making it transferable were more trouble than it was worth - PeerConnection's purpose is being connected, and what happens to those connections during a transfer is going to be hard to specify. Implementation-wise, the "real" PeerConnection lives on a separate thread in the agent cluster's memory space - so communicating between the transferred RTCDataChannels and the PeerConnection background object is relatively simple, but switching that to a cross-memory-space mechanism would be both quite complex and performance-impacting. |
I do not think the issue is service worker vs dedicated worker but out-of-agent-cluster transfer, which can happen when transferring from a window to another window/dedicated worker/service worker/shared worker. My guess is that Chromium current implementation will initially be limited to transfer to same-agent cluster. |
@youennf can you add some of those scenarios to webrtc-nv-use-cases? |
https://www.w3.org/TR/webrtc-nv-use-cases/#decent already covers some of those scenarios (P2P and service workers). |
The WebRTC-extension spec has a Transferable RTCDataChannel section.
WebKit has been shipping this feature for a while now. Chromium is projected to be shipping it in M130.
Should the text of the
webrtc-extensions
spec be merged back into the main spec? It might fit the merge criteria at this point.One point that might need additional discussion: WebKit allows transfers to DedicatedWorkers and ServiceWorkers, whereas Chromium supports transfers to DedicatedWorkers.
The text was updated successfully, but these errors were encountered: