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

10 lines
334 B
JavaScript

const static = require("node-static");
const app = new static.Server("./app");
const port = 8080;
let httpServer = require("http").createServer((request, response) => {
request.on("end", () => app.serve(request, response)).resume();
});
httpServer.listen(port);
require("ws2mpd").ws2mpd(httpServer, `http://localhost:${port}`);