mirror of
https://github.com/servo/servo.git
synced 2025-07-17 12:23:40 +01:00
10 lines
297 B
JavaScript
10 lines
297 B
JavaScript
'use strict';
|
|
|
|
function makeQuicTransport(t, certificates) {
|
|
const iceTransport = new RTCIceTransport();
|
|
t.add_cleanup(() => iceTransport.stop());
|
|
const quicTransport = new RTCQuicTransport(iceTransport, certificates);
|
|
t.add_cleanup(() => quicTransport.stop());
|
|
return quicTransport;
|
|
}
|
|
|