You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2026-01-03 23:22:30 +03:00
Add docs for STOPPED state and correct js doc
This commit is contained in:
@@ -3282,9 +3282,14 @@ module.exports.CRYPTO_ENABLED = CRYPTO_ENABLED;
|
||||
* the server for updates. This may be called multiple times even if the state is
|
||||
* already ERROR. <i>This is the equivalent of "syncError" in the previous
|
||||
* API.</i></li>
|
||||
* <li>STOPPED: The client has stopped syncing with server due to stopClient
|
||||
* being called.
|
||||
* </li>
|
||||
* </ul>
|
||||
* State transition diagram:
|
||||
* <pre>
|
||||
* +---->STOPPED
|
||||
* |
|
||||
* +----->PREPARED -------> SYNCING <--+
|
||||
* | ^ | |
|
||||
* null ------+ | +---------------+ |
|
||||
@@ -3310,13 +3315,15 @@ module.exports.CRYPTO_ENABLED = CRYPTO_ENABLED;
|
||||
* for a second time or more.</li>
|
||||
* <li><code>SYNCING -> SYNCING</code> : Occurs when the client has performed a live
|
||||
* update. This is called <i>after</i> processing.</li>
|
||||
* <li><code>* -> STOPPED</code> : Occurs once the client has stopped syncing or
|
||||
* trying to sync after stopClient has been called.</li>
|
||||
* </ul>
|
||||
*
|
||||
* @event module:client~MatrixClient#"sync"
|
||||
* @param {string} state An enum representing the syncing state. One of "PREPARED",
|
||||
* "SYNCING", "ERROR".
|
||||
* "SYNCING", "ERROR", "STOPPED".
|
||||
* @param {?string} prevState An enum representing the previous syncing state.
|
||||
* One of "PREPARED", "SYNCING", "ERROR" <b>or null</b>.
|
||||
* One of "PREPARED", "SYNCING", "ERROR", "STOPPED" <b>or null</b>.
|
||||
* @param {?Object} data Data about this transition.
|
||||
* @param {MatrixError} data.err The matrix error if <code>state=ERROR</code>.
|
||||
* @example
|
||||
|
||||
Reference in New Issue
Block a user