Skip to content

Commit

Permalink
Added ws write deadline for v5 public (#192)
Browse files Browse the repository at this point in the history
  • Loading branch information
buurzx authored Nov 2, 2024
1 parent f7be9d9 commit 51de080
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions v5_ws_public.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ func (s *V5WebsocketPublicService) Start(ctx context.Context, errHandler ErrHand
defer s.connection.Close()

_ = s.connection.SetReadDeadline(time.Now().Add(60 * time.Second))
_ = s.connection.SetWriteDeadline(time.Now().Add(60 * time.Second))
s.connection.SetPongHandler(func(string) error {
_ = s.connection.SetReadDeadline(time.Now().Add(60 * time.Second))
return nil
Expand Down

0 comments on commit 51de080

Please sign in to comment.