cyp/app/js/status.js
Ondrej Zara 860ad33a70 first
2019-03-19 20:45:23 +01:00

13 lines
No EOL
198 B
JavaScript

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();
}