I am using websocket call to fetch tick data, but in few seconds the socket closes
Kindly help
Here is the code I am using after getting the jwttocken.
let web_socket = new WebSocketClient({
clientcode: "CLIENTCODE",
jwttoken: data.data.jwtToken,
apikey: "APIKEY",
feedtype: "order_feed",
});
web_socket.connect()
.then(() => {
console.log('Connect');
web_socket.fetchData("subscribe", "order_feed"); // ACTION_TYPE: subscribe | unsubscribe FEED_TYPE: order_feed
});
Thanks in Advance.