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 END of the timeline list if it is supplied.
A list of timeline events. Lower index is earlier in time. Higher index is later.
the number of events in timelineEventList which just happened, supplied from the server.
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
Stops the sync object from syncing.
Stop polling for updates in the peeked room. NOPs if there is no room being peeked.
Main entry point. Blocks until stop() is called.
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.