diff --git a/backend/signal/src/events/events.gateway.ts b/backend/signal/src/events/events.gateway.ts index 8001d3d9..b08824be 100644 --- a/backend/signal/src/events/events.gateway.ts +++ b/backend/signal/src/events/events.gateway.ts @@ -132,7 +132,7 @@ export class EventsGateway this.eventEmit(socket, 'joinRoomSuccess', roomId); } - @SubscribeMessage('connection') + @SubscribeMessage('connection') handleConnectionEvent( socket: Socket, { @@ -177,7 +177,7 @@ export class EventsGateway public eventEmitToRoom( socket: Socket, roomName: string, - event: HumanServerEvent, + event: HumanServerEvent | 'connection', ...args: any[] ) { socket.to(roomName).emit(event, ...args);