faster
This commit is contained in:
parent
5db2de42d4
commit
4a620ab7a3
3 changed files with 3 additions and 2 deletions
|
@ -4,7 +4,7 @@ import * as html from "./lib/html.js";
|
||||||
import * as format from "./lib/format.js";
|
import * as format from "./lib/format.js";
|
||||||
import * as pubsub from "./lib/pubsub.js";
|
import * as pubsub from "./lib/pubsub.js";
|
||||||
|
|
||||||
const DELAY = 2000;
|
const DELAY = 1000;
|
||||||
const DOM = {};
|
const DOM = {};
|
||||||
|
|
||||||
let current = {};
|
let current = {};
|
||||||
|
|
1
index.js
1
index.js
|
@ -60,3 +60,4 @@ function onRequest(request, response) {
|
||||||
|
|
||||||
let httpServer = require("http").createServer(onRequest).listen(port);
|
let httpServer = require("http").createServer(onRequest).listen(port);
|
||||||
require("ws2mpd").ws2mpd(httpServer, `http://localhost:${port}`);
|
require("ws2mpd").ws2mpd(httpServer, `http://localhost:${port}`);
|
||||||
|
require("ws2mpd").logging(false);
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"node-static": "^0.7.11",
|
"node-static": "^0.7.11",
|
||||||
"ws2mpd": "^1.0.0"
|
"ws2mpd": "^1.1.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"less": "^3.9.0"
|
"less": "^3.9.0"
|
||||||
|
|
Loading…
Reference in a new issue