Skip to content

Commit

Permalink
fix: 백엔드에서 HumanClientEvent에 connection이 없어서 에러가남
Browse files Browse the repository at this point in the history
- 그래서 일단 저 타입을 사용하지 않음
  • Loading branch information
Doosies committed Feb 19, 2024
1 parent 2279b61 commit 7cd5a67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/signal/src/events/events.gateway.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export class EventsGateway
this.eventEmit(socket, 'joinRoomSuccess', roomId);
}

@SubscribeMessage<HumanClientEvent>('connection')
@SubscribeMessage('connection')
handleConnectionEvent(
socket: Socket,
{
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 7cd5a67

Please sign in to comment.