Skip to content

Commit

Permalink
fix ping interval issue
Browse files Browse the repository at this point in the history
  • Loading branch information
drahnieR committed Nov 4, 2021
1 parent 44f548f commit c4e4b83
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 c4e4b83

Please sign in to comment.