WebSocket client not working as expected
-
let web_socket = new WebSocketClient({ clientcode: clientcode, jwttoken: jwt, apikey: API_KEY, 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); }
i'm not getting any error or response . socket is closed after 60 seconds
i'm using websocket streaming 2.0