- Preparing search index...
- The search index is not available
Documentation
- useConnection(): {
connect: ((userId: string, opts?: ConnectOptions) => Promise<User>);
disconnect: (() => Promise<void>);
reconnect: (() => boolean);
}
-
Returns {
connect: ((userId: string, opts?: ConnectOptions) => Promise<User>);
disconnect: (() => Promise<void>);
reconnect: (() => boolean);
}
-
connect: ((userId: string, opts?: ConnectOptions) => Promise<User>)
-
- (userId: string, opts?: ConnectOptions): Promise<User>
-
Parameters
-
userId: string
-
Optional
opts: ConnectOptions
Returns Promise<User>
-
disconnect: (() => Promise<void>)
-
- (): Promise<void>
-
Returns Promise<void>
-
reconnect: (() => boolean)
-
- (): boolean
-
Returns boolean