Set socket.io port correctly
This commit is contained in:
parent
35726b7052
commit
ab5dd5c12a
1 changed files with 1 additions and 1 deletions
|
@ -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),
|
||||
|
|
Loading…
Reference in a new issue