Skip to content

Commit

Permalink
Merge pull request #2 from drahnieR/master
Browse files Browse the repository at this point in the history
fix ping interval issue
  • Loading branch information
MelvinTo authored Nov 4, 2021
2 parents 582d975 + c4e4b83 commit 8874895
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion transport/polling.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@ import (
"time"

"fmt"

"github.com/mtfelian/golang-socketio/logging"
"github.com/mtfelian/golang-socketio/protocol"
)

const (
PlDefaultPingInterval = 10 * time.Second
PlDefaultPingInterval = 30 * time.Second
PlDefaultPingTimeout = 60 * time.Second
PlDefaultReceiveTimeout = 60 * time.Second
PlDefaultSendTimeout = 60 * time.Second
Expand Down
2 changes: 1 addition & 1 deletion transport/websocket.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
const (
upgradeFailed = "Upgrade failed: "

wsDefaultPingInterval = 30 * time.Second
wsDefaultPingInterval = 10 * time.Second
wsDefaultPingTimeout = 60 * time.Second
wsDefaultReceiveTimeout = 60 * time.Second
wsDefaultSendTimeout = 60 * time.Second
Expand Down

0 comments on commit 8874895

Please sign in to comment.