diff --git a/assets/package-lock.json b/assets/package-lock.json index 7579fb9..dbaef5e 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#20f9a87de395f0a70952fbe22883c1c4d69dcab4", + "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/features/streaming/StreamingErrorBoundary.tsx b/assets/src/features/streaming/StreamingErrorBoundary.tsx index 9447612..11b3f9b 100644 --- a/assets/src/features/streaming/StreamingErrorBoundary.tsx +++ b/assets/src/features/streaming/StreamingErrorBoundary.tsx @@ -67,22 +67,22 @@ export const StreamingErrorBoundary: FC = ({ children }) => { }, 2000); }; - const onSocketError: ClientEvents["socketError"] = (error: Event) => { - console.warn(error); - handleError(`Socket error occurred.`, "onSocketError"); - }; - - const onConnectionError: ClientEvents["connectionError"] = (error, client) => { - if (client.isReconnecting()) { - console.log("%c" + "During reconnection: connectionError %o", "color:gray", { - error, - iceConnectionState: error?.event?.target?.["iceConnectionState"] - }); - } else { - console.warn({ error, state: error?.event?.target?.["iceConnectionState"] }); - handleError(`Connection error occurred. ${error?.message ?? ""}`); - } - }; + // const onSocketError: ClientEvents["socketError"] = (error: Event) => { + // console.warn(error); + // handleError(`Socket error occurred.`, "onSocketError"); + // }; + + // const onConnectionError: ClientEvents["connectionError"] = (error, client) => { + // if (client.isReconnecting()) { + // console.log("%c" + "During reconnection: connectionError %o", "color:gray", { + // error, + // iceConnectionState: error?.event?.target?.["iceConnectionState"] + // }); + // } else { + // console.warn({ error, state: error?.event?.target?.["iceConnectionState"] }); + // handleError(`Connection error occurred. ${error?.message ?? ""}`); + // } + // }; const onJoinError: ClientEvents["joinError"] = (event) => { console.log(event);