Skip to content

Commit

Permalink
πŸ› :: fix :: websocket path
Browse files Browse the repository at this point in the history
  • Loading branch information
soyeonkim0227 committed Dec 28, 2023
1 parent e6fed86 commit 74bacd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/chat/chat.gateway.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { UserService } from 'src/user/user.service';
import { Repository } from 'typeorm';
import { GroupMapping } from './entity/groupMapping.entity';

@WebSocketGateway(80, { namespace: /\/ws\/chat\/.+/, transports: ['websocket'], cors: { origin: ['*'] } }) // 80번 포트, /chat/${groupID} 접속
@WebSocketGateway(80, { path: '/ws/chat', namespace: 'chat', transports: ['websocket'], cors: { origin: ['*'] } }) // 80번 포트, /chat/${groupID} 접속
export class ChatGateway implements OnGatewayInit, OnGatewayConnection, OnGatewayDisconnect {
constructor(
@InjectRepository(GroupMapping) private groupMappingEntity: Repository<GroupMapping>,
Expand Down

0 comments on commit 74bacd2

Please sign in to comment.