New API WebSocket not Working

chimirala
Hi,

I do not know what is wrong with new API. I couldn't see any streaming data whereas old API is working fine. If this is the case, it could be very difficult when you scrap API-2.

This is the simple code I am trying to execute:
var KiteTicker = require("kiteconnect").KiteTicker;
var ticker = new KiteTicker({api_key: "xxx", access_token: "yyy"});

ticker.connect();
ticker.on("tick", onTicks);
ticker.on("connect", subscribe);

function onTicks(ticks) {
console.log("Ticks", ticks);
}

function subscribe() {
var items = [738561];
ticker.subscribe(items);
ticker.setMode(ticker.modeFull, items);
}
Could you kindly check this issue. I have posted same issue last time, but no update.

Note: I have updated the access token for the day.
This discussion has been closed.