server.js: create
This commit is contained in:
parent
b3f54949ea
commit
ccf5ce4a8f
1 changed files with 8 additions and 0 deletions
8
server.js
Normal file
8
server.js
Normal 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();
|
Loading…
Reference in a new issue