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.
A list of state events. This is the state at the END 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.
Optional
fromCache: booleanwhether the sync response came from cache
No more than one of stateEventList and stateAfterEventList must be supplied. If stateEventList is supplied, the events in timelineEventList are added to the state after stateEventList. If stateAfterEventList is supplied, the events in timelineEventList are not added to the state.
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.
A list of state events. This is the state at the END 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.
Optional
fromCache: booleanwhether the sync response came from cache
No more than one of stateEventList and stateAfterEventList must be supplied. If stateEventList is supplied, the events in timelineEventList are added to the state after stateEventList. If stateAfterEventList is supplied, the events in timelineEventList are not added to the state.
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.