PSA: Changes in PacketSocketFactory interface

25 views
Skip to first unread message

Danil Chapovalov

unread,
Sep 10, 2025, 6:02:00 AM (14 days ago) Sep 10
to discuss-webrtc
If you provide a custom implementation of the PacketSocketFactory, you'll need to update it to newer api. 

This change is done as part of the effort to rely on propagated clock in WebRTC to query current time. (https://issues.webrtc.org/issues/42223992)

3 functions to create async sockets get an additional 'Environment' parameter that implementations may ignore, or use to query current time when needed.
Starting with https://webrtc-review.googlesource.com/c/src/+/408822 it would be no longer possible to call older functions other than as fallback until new ones are implemented, so implementations would be safe to remove old functions in favor of the new functions.
After October 10 old functions will be deleted from the PacketSocketFactory interface.


Reply all
Reply to author
Forward
0 new messages