suspendSync

internal suspend fun suspendSync(): SyncSuspension

Stop sync and close its WebSocket client before another process may receive this account's events. Legacy push skips clients the backend serves over an open WebSocket, and consumable notifications need a single consumer. The native socket and the backend see the close asynchronously. Sync stays stopped, even for new requests, until resumeSync or until the returned suspension is cancelled. Failure leaves sync running.