Skip to content

Commit

Permalink
rename param
Browse files Browse the repository at this point in the history
Signed-off-by: San Nguyen <[email protected]>
  • Loading branch information
sandangel committed Oct 11, 2024
1 parent 8a0df2d commit c0f905a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libs/react-client/src/useChatSession.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,11 @@ const useChatSession = () => {
({
userEnv,
accessToken,
retryUpgradeWebSocket = false
retryWebSocketUpgrade = false
}: {
userEnv: Record<string, string>;
accessToken?: string;
retryUpgradeWebSocket?: boolean;
retryWebSocketUpgrade?: boolean;
}) => {
const { protocol, host, pathname } = new URL(client.httpEndpoint);
const uri = `${protocol}//${host}`;
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit c0f905a

Please sign in to comment.