SessionStateSnapshot
Table of contents
A snapshot of per-session state that can be persisted and used to resume a session after the server restarts (e.g., after Cloudflare Durable Object hibernation).
Obtain via TLSocketRoom.getSessionSnapshot and restore via TLSocketRoom.handleSocketResume.
interface SessionStateSnapshot {}Properties
isReadonly
isReadonly: boolean;objectAccess
optional
Write access for the record types listed in objectTypes. Optional so snapshots persisted before this field existed resume cleanly (they fail closed to 'read').
objectAccess?: TLObjectStoreAccess;presenceId
presenceId: null | string;presenceRecord
presenceRecord: null | UnknownRecord;requiresLegacyRejection
requiresLegacyRejection: boolean;serializedSchema
serializedSchema: SerializedSchema;supportsStringAppend
supportsStringAppend: boolean;Prev
RoomStoreMethodsNext
SyncSqliteDatabase