API reference · generated from source
Interface: IConvexConnectionClient#
Defined in: retree-convex/src/types.ts:193
Minimal Convex client connection-state surface needed by ConvexConnectionStateNode.
Extended by#
Methods#
connectionState()#
connectionState(): ConnectionState;Defined in: retree-convex/src/types.ts:197
Get the current connection state.
Returns#
ConnectionState
subscribeToConnectionState()#
subscribeToConnectionState(callback): () => void;Defined in: retree-convex/src/types.ts:201
Subscribe to connection state changes.
Parameters#
| Parameter | Type |
|---|---|
callback | (connectionState) => void |
Returns#
() => void