This commit is contained in:
Alan Mosko
2023-09-06 16:11:59 -03:00
committed by GitHub
parent 5bc33ac654
commit d47cc5d5f4
3 changed files with 4 additions and 6 deletions

View File

@@ -11,7 +11,7 @@ let io: SocketIO;
const cors = configService.get<Cors>('CORS').ORIGIN;
export const initIO = (httpServer: Server) => {
if (configService.get<Websocket>('WEBSOCKET').ENABLED) {
if (configService.get<Websocket>('WEBSOCKET')?.ENABLED) {
io = new SocketIO(httpServer, {
cors: {
origin: cors,