Change BundlePolicy to max-bundle (#2253)

Signed-off-by: Paul R. Tagliamonte <paul@kittycad.io>
This commit is contained in:
Paul Tagliamonte
2024-04-29 10:01:37 -04:00
committed by GitHub
parent 93f652647e
commit c55603853b

View File

@ -335,7 +335,9 @@ class EngineConnection {
// Information on the connect transaction
const createPeerConnection = () => {
this.pc = new RTCPeerConnection()
this.pc = new RTCPeerConnection({
bundlePolicy: 'max-bundle',
})
// Data channels MUST BE specified before SDP offers because requesting
// them affects what our needs are!
@ -660,6 +662,7 @@ failed cmd type was ${artifactThatFailed?.commandType}`
// talk to the engine in any configuration /other/ than relay
// from a infra POV.
this.pc?.setConfiguration({
bundlePolicy: 'max-bundle',
iceServers: ice_servers,
iceTransportPolicy: 'relay',
})