From c0f905a6b9c1d78759864438ce0eea774e58a3c7 Mon Sep 17 00:00:00 2001 From: San Nguyen Date: Sat, 12 Oct 2024 08:38:42 +0900 Subject: [PATCH] rename param Signed-off-by: San Nguyen --- libs/react-client/src/useChatSession.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/react-client/src/useChatSession.ts b/libs/react-client/src/useChatSession.ts index f3a13c78fd..1c668504d5 100644 --- a/libs/react-client/src/useChatSession.ts +++ b/libs/react-client/src/useChatSession.ts @@ -87,11 +87,11 @@ const useChatSession = () => { ({ userEnv, accessToken, - retryUpgradeWebSocket = false + retryWebSocketUpgrade = false }: { userEnv: Record; accessToken?: string; - retryUpgradeWebSocket?: boolean; + retryWebSocketUpgrade?: boolean; }) => { const { protocol, host, pathname } = new URL(client.httpEndpoint); const uri = `${protocol}//${host}`; @@ -121,7 +121,7 @@ const useChatSession = () => { }; }); - if (retryUpgradeWebSocket) { + if (retryWebSocketUpgrade) { // https://socket.io/docs/v4/how-it-works/#upgrade-mechanism // Retry upgrading to websocket when error // This happens sometimes when user is using soft session affinity (like Istio)