From 4a620ab7a3837cab089fc99eb7d2300fd249508a Mon Sep 17 00:00:00 2001 From: Ondrej Zara Date: Fri, 12 Apr 2019 13:48:00 +0200 Subject: [PATCH] faster --- app/js/player.js | 2 +- index.js | 1 + package.json | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/js/player.js b/app/js/player.js index 89ff349..6df23d6 100644 --- a/app/js/player.js +++ b/app/js/player.js @@ -4,7 +4,7 @@ import * as html from "./lib/html.js"; import * as format from "./lib/format.js"; import * as pubsub from "./lib/pubsub.js"; -const DELAY = 2000; +const DELAY = 1000; const DOM = {}; let current = {}; diff --git a/index.js b/index.js index 74809b0..dd862a7 100644 --- a/index.js +++ b/index.js @@ -60,3 +60,4 @@ function onRequest(request, response) { let httpServer = require("http").createServer(onRequest).listen(port); require("ws2mpd").ws2mpd(httpServer, `http://localhost:${port}`); +require("ws2mpd").logging(false); diff --git a/package.json b/package.json index 482b13f..b9650ad 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "main": "index.js", "dependencies": { "node-static": "^0.7.11", - "ws2mpd": "^1.0.0" + "ws2mpd": "^1.1.0" }, "devDependencies": { "less": "^3.9.0"