From ccf5ce4a8fd16d820965bb5cf86845d6e4bdc197 Mon Sep 17 00:00:00 2001 From: Herb Caudill Date: Tue, 12 Nov 2019 15:32:29 +0100 Subject: [PATCH] server.js: create --- server.js | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 server.js diff --git a/server.js b/server.js new file mode 100644 index 0000000..964219e --- /dev/null +++ b/server.js @@ -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();