- 강의 질문
- 프로그래밍
socket.io / Error: socket hang up
2025.03.22 23:07 수정
@WebSocketGateway()
export class ChatGateway {
constructor(private readonly chatService: ChatService) {}
@SubscribeMessage('receiveMessage')
async receiveMessage(
@MessageBody() body: { message: string },
@ConnectedSocket() client: Socket,
) {
console.log(body);
console.log(client);
}
}
다음과 같이 강의와 똑같이 등록을 하였지만
PostMan에서 다음과 같은 오류가 지속해서 발생해요
### 해결했습니다.