Skip to content

Commit

Permalink
docs: added jsdoc for persistUserOnConnectionFailure
Browse files Browse the repository at this point in the history
  • Loading branch information
vishalnarkhede committed Aug 23, 2022
1 parent f8300e7 commit 22dd3dd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -906,6 +906,12 @@ export type StreamChatOptions = AxiosRequestConfig & {
/** experimental feature, please contact support if you want this feature enabled for you */
enableWSFallback?: boolean;
logger?: Logger;
/**
* When true, user will be persisted on client. Otherwise if `connectUser` call fails, then you need to
* call `connectUser` again to retry.
* This is mainly useful for chat application working in offline mode, where you will need client.user to
* persist even if connectUser call fails.
*/
persistUserOnConnectionFailure?: boolean;
/**
* When network is recovered, we re-query the active channels on client. But in single query, you can recover
Expand Down

0 comments on commit 22dd3dd

Please sign in to comment.