Skip to content

Commit

Permalink
websocket reconnect config
Browse files Browse the repository at this point in the history
  • Loading branch information
brandon-schabel committed Jan 15, 2025
1 parent a09550e commit b7f29c5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,11 @@ export function GlobalStateWebsocketProvider({ children }: { children: React.Rea
config: {
url: SERVER_WS_ENDPOINT,
messageHandlers,
autoReconnect: true,
reconnectIntervalMs: 500,
maxReconnectAttempts: 500,
},

})

const baseValue: BaseContextValue = useMemo(() => {
Expand Down
1 change: 1 addition & 0 deletions packages/shared/src/global-state/global-state-schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ export const chatTabStateSchema = z.object({
linkSettings: linkSettingsSchema.optional(),
// optional ollama url, for example if a user wanted to have per tab ollama instances
// for example if a user had 5 ollama instances on their network
// TODO: this still needs to be implemented
ollamaUrl: z.string().optional(),
lmStudioUrl: z.string().optional(),
});
Expand Down

0 comments on commit b7f29c5

Please sign in to comment.