@admin
This is actual code
let web_socket = new WebSocketClient({
clientcode: "N199330",
jwttoken: jwtToken,
apikey: "GHfVT7N7",
feedtype: "order_feed",
});
web_socket.connect()
.then(() => {
web_socket.fetchData("subscribe", "order_feed"); // ACTION_TYPE: subscribe | unsubscribe FEED_TYPE: order_feed
setTimeout(function () {
web_socket.close()
}, 60000)
});
web_socket.on('tick', receiveTick);
function receiveTick(data) {
console.log("receiveTick:::::", data);
}