mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-09-11 23:24:32 +08:00
Summary: Periodically ping client-sync's /health endpoint and store the latest sync activity. If we get an ECONNREFUSED error, the worker window is unavailable. Report the last known activity and restart the worker window. Part of T7681. Test Plan: manual, specs Reviewers: evan, mark, juan Reviewed By: juan Differential Revision: https://phab.nylas.com/D4263
9 lines
175 B
JavaScript
9 lines
175 B
JavaScript
import SyncHealthChecker from './sync-health-checker'
|
|
|
|
export function activate() {
|
|
SyncHealthChecker.start()
|
|
}
|
|
|
|
export function deactivate() {
|
|
SyncHealthChecker.stop()
|
|
}
|