Skip to content

Commit

Permalink
修改socket 端口
Browse files Browse the repository at this point in the history
  • Loading branch information
pakizheng committed Jan 11, 2024
1 parent 21775b5 commit 4c69713
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gateways/chat/chat.gateway.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,11 @@ import {
} from 'src/types/group';
import { ErrorCode, errorMessage } from 'src/const/error-code';
// import { UpdateFriendDto } from './dto/update-friend.dto';
import { corsOrigins } from 'src/config';
import { ChatGatewayService } from './chat.service';

// @UseInterceptors(TransformSocketResponseInterceptor)
@WebSocketGateway({ cors: { origin: '*' }, port: '3000' })
@WebSocketGateway({ cors: { origin: corsOrigins } })
export class ChatGateway
implements OnGatewayInit, OnGatewayConnection, OnGatewayDisconnect
{
Expand Down

0 comments on commit 4c69713

Please sign in to comment.