rpc: decrease websocket ping interval #26253 (#979)

This is to cater for more node providers.

Co-authored-by: Wihan de Beer <debeerwihan@gmail.com>
This commit is contained in:
Daniel Liu 2025-04-24 19:09:42 +08:00 committed by GitHub
parent eb4240992e
commit 149beccd14
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -35,7 +35,7 @@ import (
const (
wsReadBuffer = 1024
wsWriteBuffer = 1024
wsPingInterval = 60 * time.Second
wsPingInterval = 30 * time.Second
wsPingWriteTimeout = 5 * time.Second
wsPongTimeout = 30 * time.Second
wsMessageSizeLimit = 15 * 1024 * 1024