update()

in images/web/src/app.js [115:137]


    update(loop) {
        this.broker.get_status(this.name, (data) => {
            switch (data.status) {
                case "ready":
                    this.status = "running";
                    this.checkApp(loop);
                    break;
                case "shutdown":
                    this.status = "stopped";
                    break;
                default:
                    this.status = "checking";
                    break;
            }
        },
            () => {
                if (loop && this.status === "checking") {
                    setTimeout(() => {
                        this.update(loop);
                    }, 2000);
                }
            });
    }