Websocket error ECONNRESET
-
@admin , I am using the Node.js SDK for connecting to Websocket (v 2.0), but everytime I am trying to connect, it is giving an error 'ECONNRESET'. My code is the following: -
let web_socket = new WebSocketClient({ clientcode: config.get("client_id"), jwttoken: jwtToken, apikey: config.get("api_key"), feedtype: "order_feed" }); web_socket.connect().then(() => { // ACTION_TYPE: subscribe | unsubscribe FEED_TYPE: order_feed web_socket.fetchData("subscribe", "order_feed"); setTimeout(function () { web_socket.close(); }, 60000) }) .catch((e) => { console.error(e); }); web_socket.on('tick', onTick);