Internal
The matrix client instance to use.
Optional
opts: IStoredClientOptsclient config options
Optional
syncOpts: SyncApiOptionssync-specific options passed by the client
Returns 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, including threaded. Lower index is earlier in time. Higher index is later.
whether the sync response came from cache
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.
The number of timeline events to initially retrieve.
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
Construct an entity which is able to sync with a homeserver.