feat: Added websocket with lib socket.io

This commit is contained in:
Davidson Gomes
2023-08-02 13:08:30 -03:00
parent ed5e66e430
commit 79864e97d6
22 changed files with 72 additions and 19 deletions

View File

@@ -9,6 +9,7 @@ import { configService, Cors, HttpServer } from './config/env.config';
import { onUnexpectedError } from './config/error.config';
import { Logger } from './config/logger.config';
import { ROOT_DIR } from './config/path.config';
import { initIO } from './libs/socket';
import { ServerUP } from './utils/server-up';
import { HttpStatus, router } from './whatsapp/routers/index.router';
import { waMonitor } from './whatsapp/whatsapp.module';
@@ -83,6 +84,8 @@ function bootstrap() {
initWA();
initIO(server);
onUnexpectedError();
}