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 17, 2025
1 parent 4d1b1de commit 65e81e4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions exchanges/huobi/huobi_websocket.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,7 @@ func (h *HUOBI) wsHandleV2ping(respRaw []byte) error {

func (h *HUOBI) wsHandleV2subResp(action string, respRaw []byte) error {
if ch, err := jsonparser.GetString(respRaw, "ch"); err == nil {
if !h.Websocket.Match.IncomingWithData(action+":"+ch, respRaw) {
return fmt.Errorf("%w: %s:%s", stream.ErrNoMessageListener, action, ch)
}
return h.Websocket.Match.RequireMatchWithData(action+":"+ch, respRaw)
}
return nil
}
Expand Down

0 comments on commit 65e81e4

Please sign in to comment.