Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

core: increase server timeout

ammarahm-edace2dfac300d
diff --git a/packages/core/src/api/sync/index.js b/packages/core/src/api/sync/index.js
index 488ea17e4..af2612644 100644
--- a/packages/core/src/api/sync/index.js
+++ b/packages/core/src/api/sync/index.js
@@ -144,7 +144,7 @@ class Sync {
})
.withHubProtocol(new MessagePackHubProtocol({ ignoreUndefined: true }))
.build();
-
+ this.connection.serverTimeoutInMilliseconds = 60 * 1000 * 5;
EV.subscribe(EVENTS.userLoggedOut, async () => {
await this.connection.stop();
this.autoSync.stop();