From bd4c022d61eb53cb0f8ec7a86478568a0bdb5f0a Mon Sep 17 00:00:00 2001 From: David MacPherson Date: Fri, 19 May 2023 11:05:35 +1000 Subject: [PATCH] Set the autoConnect to false and the maxReconnects attempts to 0 --- examples/typescript/src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/typescript/src/index.ts b/examples/typescript/src/index.ts index 5d77535c..d36fb40c 100644 --- a/examples/typescript/src/index.ts +++ b/examples/typescript/src/index.ts @@ -25,8 +25,8 @@ class ScalablePixelStreaming extends PixelStreaming { document.body.onload = function () { - // Create a config object. We default to sending the WebRTC offer from the browser as true - const config = new Config({ useUrlParams: true, initialSettings: { OfferToReceive: true, TimeoutIfIdle: true } }); + // Create a config object. We default to sending the WebRTC offer from the browser as true, TimeoutIfIdle to true, AutoConnect to false and MaxReconnectAttempts to 0 + const config = new Config({ useUrlParams: true, initialSettings: { OfferToReceive: true, TimeoutIfIdle: true, AutoConnect: false, MaxReconnectAttempts: 0 } }); // make usage of WEBSOCKET_URL if it is not empty let webSocketAddress = WEBSOCKET_URL;