Skip to content

Commit

Permalink
fixup! Huobi: Add V2 websocket support
Browse files Browse the repository at this point in the history
  • Loading branch information
gbjk committed Feb 19, 2025
1 parent f3b305e commit 95a9f51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exchanges/huobi/huobi_websocket.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,12 @@ func (h *HUOBI) WsConnect() error {
if err := h.Websocket.Conn.Dial(&websocket.Dialer{}, http.Header{}); err != nil {
return err
}
ctx := context.Background()

h.Websocket.Wg.Add(1)
go h.wsReadMsgs(h.Websocket.Conn)

if h.IsWebsocketAuthenticationSupported() {
ctx := context.Background()
if err := h.wsAuthConnect(ctx); err != nil {
h.Websocket.SetCanUseAuthenticatedEndpoints(false)
return fmt.Errorf("error authenticating websocket: %w", err)
Expand Down

0 comments on commit 95a9f51

Please sign in to comment.