Skip to content

Commit

Permalink
enable websocket compression (#645)
Browse files Browse the repository at this point in the history
  • Loading branch information
xyq-c-cpp authored Dec 5, 2024
1 parent 6d882fc commit 4c9ea21
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion v2/delivery/websocket.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ var wsServe = func(cfg *WsConfig, handler WsHandler, errHandler ErrHandler) (don
Dialer := websocket.Dialer{
Proxy: proxy,
HandshakeTimeout: 45 * time.Second,
EnableCompression: false,
EnableCompression: true,
}

c, _, err := Dialer.Dial(cfg.Endpoint, nil)
Expand Down
2 changes: 1 addition & 1 deletion v2/futures/websocket.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ var wsServe = func(cfg *WsConfig, handler WsHandler, errHandler ErrHandler) (don
Dialer := websocket.Dialer{
Proxy: proxy,
HandshakeTimeout: 45 * time.Second,
EnableCompression: false,
EnableCompression: true,
}

c, _, err := Dialer.Dial(cfg.Endpoint, nil)
Expand Down
2 changes: 1 addition & 1 deletion v2/options/websocket.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ var wsServe = func(cfg *WsConfig, handler WsHandler, errHandler ErrHandler) (don
Dialer := websocket.Dialer{
Proxy: proxy,
HandshakeTimeout: 45 * time.Second,
EnableCompression: false,
EnableCompression: true,
}

c, _, err := Dialer.Dial(cfg.Endpoint, nil)
Expand Down
2 changes: 1 addition & 1 deletion v2/websocket.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ var wsServe = func(cfg *WsConfig, handler WsHandler, errHandler ErrHandler) (don
Dialer := websocket.Dialer{
Proxy: proxy,
HandshakeTimeout: 45 * time.Second,
EnableCompression: false,
EnableCompression: true,
}

c, _, err := Dialer.Dial(cfg.Endpoint, nil)
Expand Down

0 comments on commit 4c9ea21

Please sign in to comment.