Hi,
I try to add @UseInterceptors(ClassSerializerInterceptor) on my WebSocketGateway but when I did client.emit('newMessage', message); I still get the password from the users (author & reciptient).
message :
{
author: User,
recipient: User,
text: string,
}```
I conclude that the interceptor only works on return.
If this is true, do I have to manually filter the data I emit, or is there another solution?
If not, how can I use it on emit?