server.js:

This commit is contained in:
HerbCaudill 2020-12-18 13:33:12 +01:00
parent 022bc97cf4
commit df046a3977

View file

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