Websocket for NodeJs is closing after few seconds. Kindly Help


  • I am using websocket call to fetch tick data, but in few seconds the socket closes angel-tickdata.png

    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.


  • Hi @apoorvapandya Our team is working on web socket.We will update you on this.