Interface: ClientContext
Shared context passed to all resource managers and live objects.
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
httpClient | readonly | Client<paths, `${string}/${string}`> | The configured openapi-fetch client instance | 4Players/cortex-typescript-sdk/src/internal.ts:22 |
Methods
getRealtimeConnection()
Internal
Get (or lazily create) the shared, ref-counted realtime connection for a
project. Pass undefined for the tenant-wide stream. Subscribers filter
client-side; the connection closes when its last subscriber unsubscribes.
Parameters
| Parameter | Type |
|---|---|
projectId? | string |
Returns
RealtimeConnection
Defined in
4Players/cortex-typescript-sdk/src/internal.ts:31
handleError()
Centralized error handler — always throws
Parameters
| Parameter | Type |
|---|---|
operation | string |
error | unknown |
Returns
never
Defined in
4Players/cortex-typescript-sdk/src/internal.ts:24