Optional
opts: IStoredClientOptsOptional
syncOpts: SyncApiOptionsReturns the additional data object associated with the current sync state, or null if there is no such data. Sync errors, if available, are put in the 'error' key of this object.
Injects events into a room's model.
A list of state events. This is the state at the START of the timeline list if it is supplied.
Optional
timelineEventList: MatrixEvent[]A list of timeline events. Lower index is earlier in time. Higher index is later.
Optional
numLive: numberthe number of events in timelineEventList which just happened, supplied from the server.
Peek into a room. This will result in the room in question being synced so it is accessible via getRooms(). Live updates for the room will be provided.
The room ID to peek into.
A promise which resolves once the room has been added to the store.
Specify the set_presence value to be used for subsequent calls to the Sync API.
Optional
presence: SetPresencethe presence to specify to set_presence of sync calls
A copy of SyncApi such that it can be used as a drop-in replacement for sync v2. For the actual sliding sync API, see sliding-sync.ts or the class SlidingSync.