cyp/app/js/status.js

13 lines
198 B
JavaScript
Raw Normal View History

2019-03-20 03:45:23 +08:00
import * as mpd from "./mpd.js";
const DELAY = 2000;
async function tick() {
let data = await mpd.getStatus();
console.log(data);
setTimeout(tick, DELAY);
}
export function init() {
tick();
}