Skip to content

Commit

Permalink
dto actived
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Jaros committed Apr 6, 2023
1 parent 2632900 commit 9c6fec1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion back/nest_project/src/chat/chat.gateway.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { MessageBody, SubscribeMessage, WebSocketGateway, ConnectedSocket, OnGatewayConnection, OnGatewayDisconnect, OnGatewayInit } from "@nestjs/websockets";
import { Server, Socket, Namespace } from 'socket.io';
import { Logger, UseGuards } from "@nestjs/common";
import { Logger, UseGuards, UsePipes, ValidationPipe } from "@nestjs/common";
import { AuthGuard } from "@nestjs/passport";
import { IChannelToEmit, IMessageChat, IToken } from "./chat.interface";
import * as jsrsasign from 'jsrsasign';
Expand All @@ -15,6 +15,7 @@ import { UserEntity } from "src/user/user.entity";
import { ChannelDto } from "./channel/channel.dto";
import { addMessageDto, changeLocDto, channelIdDto, createChannelDto, inviteUserDto, joinChannelDto, kickUserDto, makeHimNoOpDto, makeHimOpDto } from "./chat.gateway.dto";

@UsePipes(ValidationPipe)
@WebSocketGateway({transports: ['websocket'], namespace: '/chat'})
export class ChatGateway implements OnGatewayInit, OnGatewayConnection, OnGatewayDisconnect {
private logger: Logger = new Logger('ChatGateway');
Expand Down

0 comments on commit 9c6fec1

Please sign in to comment.