From 9d33739f032812bb0b09a9f912e40d47213eda03 Mon Sep 17 00:00:00 2001 From: schlagmichdoch Date: Tue, 17 Jan 2023 02:24:11 +0100 Subject: [PATCH] stabilize wss connection by increasing timeout to 5s --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 8c887b6..e2da7da 100644 --- a/index.js +++ b/index.js @@ -402,7 +402,7 @@ class PairdropServer { _keepAlive(peer) { this._cancelKeepAlive(peer); - var timeout = 500; + let timeout = 2500; if (!peer.lastBeat) { peer.lastBeat = Date.now(); }