Skip to content

Commit 3283753

Browse files
committed
Emitting connected=false immediately on network break, SDK picks up instantly when the connected status should be false now.
1 parent 3899f0d commit 3283753

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

PowerSync/PowerSync.Common/Client/Sync/Stream/StreamingSyncImplementation.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,12 @@ protected async Task StreamingSync(CancellationToken? signal, PowerSyncConnectio
297297
// This loop will retry.
298298
// The nested abort controller will cleanup any open network requests and streams.
299299
// The WebRemote should only abort pending fetch requests or close active Readable streams.
300-
//
300+
301+
UpdateSyncStatus(new SyncStatusOptions
302+
{
303+
Connected = false,
304+
});
305+
301306
// On error, wait a little before retrying
302307
await DelayRetry();
303308
}

0 commit comments

Comments
 (0)