Websocket Order Status : Invalid Token Error


  • let web_socket = new WebSocketClient({
    clientcode: "CLIENT_CODE",
    jwttoken: "jwt_token",
    apikey: "smartapi_key",
    feedtype: "order_feed",
    });

    web_socket.connect()
    .then(() => {
    web_socket.fetchData("subscribe", "order_feed");

        setTimeout(function () {
            web_socket.close()
        }, 60000)
    });
    

    web_socket.on('tick', receiveTick);

    function receiveTick(data) {
    console.log("receiveTick:::::", data);
    }

    Getting error : Websocket Order Status : Invalid Token Error
    I verified jwttoken it is valid but still not working