From 94ac4b73186be3c5df9d8d5b466c1d7ac2914be3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rados=C5=82aw=20Szuma?= Date: Fri, 21 Jun 2024 11:25:28 +0200 Subject: [PATCH] Change ts-client-sdk to branch debug_reconnect --- assets/package-lock.json | 4 +++- assets/package.json | 1 + assets/src/fishjam.ts | 6 +++--- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/assets/package-lock.json b/assets/package-lock.json index 7579fb9..707b0f9 100644 --- a/assets/package-lock.json +++ b/assets/package-lock.json @@ -10,6 +10,7 @@ "license": "Apache-2.0", "dependencies": { "@fishjam-dev/react-client": "github:fishjam-dev/react-client-sdk#reconnet-on-network-change", + "@fishjam-dev/ts-client": "github:fishjam-dev/ts-client-sdk#debug_reconnect", "@mediapipe/tasks-vision": "^0.10.12", "axios": "^1.6.8", "chartist": "^1.3.0", @@ -1025,7 +1026,8 @@ }, "node_modules/@fishjam-dev/ts-client": { "version": "0.5.0", - "resolved": "git+ssh://git@github.com/fishjam-dev/ts-client-sdk.git#ca1d91b1f0f2c5b1618654120588381434997433", + "resolved": "git+ssh://git@github.com/fishjam-dev/ts-client-sdk.git#1339805b1b9a79f8a00992478919b9724e018eae", + "license": "Apache-2.0", "dependencies": { "events": "^3.3.0", "protobufjs": "^7.3.0", diff --git a/assets/package.json b/assets/package.json index 52a886a..49162d9 100644 --- a/assets/package.json +++ b/assets/package.json @@ -12,6 +12,7 @@ }, "dependencies": { "@fishjam-dev/react-client": "github:fishjam-dev/react-client-sdk#reconnet-on-network-change", + "@fishjam-dev/ts-client": "github:fishjam-dev/ts-client-sdk#debug_reconnect", "@mediapipe/tasks-vision": "^0.10.12", "axios": "^1.6.8", "chartist": "^1.3.0", diff --git a/assets/src/fishjam.ts b/assets/src/fishjam.ts index 457f932..281ad34 100644 --- a/assets/src/fishjam.ts +++ b/assets/src/fishjam.ts @@ -38,10 +38,10 @@ export const { peerMetadataParser: (obj) => peerMetadataSchema.parse(obj), trackMetadataParser: (obj) => trackMetadataSchema.parse(obj), reconnect: { - initialDelay: 500, // ms - delay: 500, // ms + initialDelay: 1_000, // ms + delay: 1_000, // ms maxAttempts: 1000, - addTracksOnReconnect: true + // addTracksOnReconnect: true } }, { storage: true });