[core] add /ws authentication

fix #1069
This commit is contained in:
devlikepro committed 2025-06-25 13:38:48 +07:00
1 parent 75b06d3ba1
commit 080342e619
1 file changed
+2
+2
View File
@@ -12,6 +12,7 @@ import {
WebSocketServer,
} from '@nestjs/websockets';
import { SessionManager } from '@waha/core/abc/manager.abc';
import { WebSocketAuth } from '@waha/core/auth/WebSocketAuth';
import { WebsocketHeartbeatJob } from '@waha/nestjs/ws/WebsocketHeartbeatJob';
import { WebSocket } from '@waha/nestjs/ws/ws';
import { WAHAEvents, WAHAEventsWild } from '@waha/structures/enums.dto';
@@ -24,6 +25,7 @@ import { Server } from 'ws';
@WebSocketGateway({
path: '/ws',
cors: true,
verifyClient: new WebSocketAuth().verifyClient,
})
export class WebsocketGatewayCore
implements