UNABLE TO UNSUBSCRIBE HUOBI WEBSOCKET TICKER SUBSCRIPTION

330 Views Asked by At

I'm trying to unsubscribe from a HUOBI websocket server but the server is keep sending me the datas. I contacted to support but so far there is no news. Is there anyone who is achieved to unsubscribe?

As far as I checked from their API, this is what should I send for unsubscription.

            console.log("Unsubscribing Huobi for symbol: " + symbol)
            ws.send(JSON.stringify({
                "unsub": `market.${symbol}.ticker`,
                "id": `${symbol}`
            }));

And this is how I subscribed;

            console.log("Subscribing Huobi for symbol: " + symbol)
            ws.send(JSON.stringify({
                "sub": `market.${symbol}.ticker`,
                "id": `${symbol}`
            }));
1

There are 1 best solutions below

0
Melih Cihan GULER On

I just received a confirmation from Huobi support. They solved the issue. Now, I'm able to be unsubscribed properly. FYI –