stabilize wss connection by increasing timeout to 5s

This commit is contained in:
schlagmichdoch 2023-01-17 02:24:11 +01:00
parent 5c5fb2db0d
commit 9d33739f03

View file

@ -402,7 +402,7 @@ class PairdropServer {
_keepAlive(peer) { _keepAlive(peer) {
this._cancelKeepAlive(peer); this._cancelKeepAlive(peer);
var timeout = 500; let timeout = 2500;
if (!peer.lastBeat) { if (!peer.lastBeat) {
peer.lastBeat = Date.now(); peer.lastBeat = Date.now();
} }