server.js: create

This commit is contained in:
Herb Caudill 2019-11-12 15:32:29 +01:00
parent b3f54949ea
commit ccf5ce4a8f

8
server.js Normal file
View file

@ -0,0 +1,8 @@
const { Server } = require("cevitxe-signal-server/dist");
const DEFAULT_PORT = 8080;
const port = Number(process.env.PORT) || DEFAULT_PORT;
const server = new Server({ port });
server.listen();