From a25330e8f2fef51d267cb4b791b3bdd79ae9d9b8 Mon Sep 17 00:00:00 2001 From: Nikolay Pavlovich Date: Thu, 7 Jul 2022 18:26:50 +0300 Subject: [PATCH] Update recws.go --- recws.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recws.go b/recws.go index 4b6aebe..36ee7d7 100644 --- a/recws.go +++ b/recws.go @@ -409,7 +409,7 @@ func (rc *RecConn) keepAlive() { } <-ticker.C - timeoutOffset := time.Millisecond * 50 + timeoutOffset := time.Millisecond * 500 if time.Since(keepAliveResponse.getLastResponse()) > rc.getKeepAliveTimeout()+timeoutOffset { rc.CloseAndReconnect() return