getSyncHistory

fun getSyncHistory(channelsIds: List<String>, lastSyncAt: Date): Call<List<ChatEvent>>

Returns all events that happened for a list of channels since last sync (while the user was not connected to the web-socket). An event that can't be read is left out and logged.

Return

Executable async Call responsible for obtaining missing events.

Parameters

channelsIds

The list of channel CIDs. Cannot be empty.

lastSyncAt

The last time the user was online and in sync. Shouldn't be later than 30 days.


fun getSyncHistory(channelsIds: List<String>, lastSyncAt: String): Call<List<ChatEvent>>

Returns all events that happened for a list of channels since last sync (while the user was not connected to the web socket). lastSyncAt is in yyyy-MM-dd'T'HH:mm:ss.SSSSSS'Z' format. Use this version of getSyncHistory when high precision is necessary. An event that can't be read is left out and logged.

Return

Executable async Call responsible for obtaining missing events.

Parameters

channelsIds

The list of channel CIDs. Cannot be empty.

lastSyncAt

The last time the user was online and in sync. Shouldn't be later than 30 days.