Skip to content

ClientSession

Defined in: packages/@livestore/common/dist/adapter-types.d.ts:12

clientId: string

Defined in: packages/@livestore/common/dist/adapter-types.d.ts:22


debugInstanceId: string

Defined in: packages/@livestore/common/dist/adapter-types.d.ts:30

A unique identifier for the current instance of the client session. Used for debugging purposes.


devtools: { enabled: false; } | { enabled: true; pullLatch: Latch; pushLatch: Latch; }

Defined in: packages/@livestore/common/dist/adapter-types.d.ts:15


leaderThread: ClientSessionLeaderThreadProxy

Defined in: packages/@livestore/common/dist/adapter-types.d.ts:28

A proxy API to communicate with the leader thread


lockStatus: SubscriptionRef<LockStatus>

Defined in: packages/@livestore/common/dist/adapter-types.d.ts:25

Status info whether current session is leader or not


sessionId: string

Defined in: packages/@livestore/common/dist/adapter-types.d.ts:23


shutdown: (cause) => Effect<void>

Defined in: packages/@livestore/common/dist/adapter-types.d.ts:26

Exit<IntentionalShutdownCause, UnexpectedError | InvalidPushError | InvalidPullError | MaterializeError>

Effect<void>


sqliteDb: SqliteDb

Defined in: packages/@livestore/common/dist/adapter-types.d.ts:14

SQLite database with synchronous API running in the same thread (usually in-memory)