Compare commits

...

2 Commits

Author SHA1 Message Date
9a9c65c24c fix: ping not sent 2025-10-01 13:45:48 +07:00
8a11ce0103 fix: extend read deadline wait 2025-09-30 13:13:29 +07:00

View File

@@ -16,7 +16,7 @@ import (
const (
pingPeriod = 10 * time.Second
readDeadline = 30 * time.Second
readDeadline = 120 * time.Second
)
type SafeMap[K comparable, V any] struct {
@@ -355,7 +355,7 @@ func (wsClient *SafeWebsocketClient) startPingTicker(ctx context.Context) {
case <-ticker.C:
wsClient.writeChan <- Message{
MessageType: websocket.PingMessage,
Data: nil,
Data: []byte{},
}
}
}