From ab5dd5c12a71e28297e9b0385f0162f75f72853a Mon Sep 17 00:00:00 2001 From: Anthony Wang Date: Wed, 12 Jan 2022 14:48:47 -0600 Subject: Set socket.io port correctly --- back/src/server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/back/src/server.ts b/back/src/server.ts index c73162a..ee74aaf 100644 --- a/back/src/server.ts +++ b/back/src/server.ts @@ -3,7 +3,7 @@ import http from 'http'; import https from 'https'; import {Server} from 'socket.io'; -export default new Server({cors: {origin: process.env.ORIGIN, methods: ['GET', 'POST']}}); +export default new Server(Number(process.env.PORT!), {cors: {origin: process.env.ORIGIN, methods: ['GET', 'POST']}}); /*const base = process.env.SSL_KEY && process.env.SSL_CERT && process.env.SSL_CA ? https.createServer({ "key": fs.readFileSync(process.env.SSL_KEY), -- cgit v1.2.3-70-g09d2