change pingPeriod to 10s.

This commit is contained in:
Miroslav Šedivý 2021-03-03 18:35:58 +01:00
parent fa16b28ac0
commit 0aa1237df9

View File

@ -32,7 +32,7 @@ func New(
} }
// Send pings to peer with this period. Must be less than pongWait. // Send pings to peer with this period. Must be less than pongWait.
const pingPeriod = 60 * time.Second const pingPeriod = 10 * time.Second
type WebSocketManagerCtx struct { type WebSocketManagerCtx struct {
logger zerolog.Logger logger zerolog.Logger