change pingPeriod to 10s.
This commit is contained in:
parent
fa16b28ac0
commit
0aa1237df9
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue