You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/websockets/gateways.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -128,6 +128,8 @@ handleEvent(data) {
128
128
129
129
> info **Hint** The `WsResponse` interface is imported from `@nestjs/websockets` package.
130
130
131
+
> warning **Warning** You should return a class instance that implements `WsResponse` if your `data` field relies on `ClassSerializerInterceptor`, as it ignores plain JavaScript objects responses.
132
+
131
133
In order to listen for the incoming response(s), the client has to apply another event listener.
0 commit comments