feat: skip response transformation for WebSocket contexts in the transform interceptor.

This commit is contained in:
pradeepkumar
2026-02-11 07:38:07 +05:30
parent 755ddda123
commit 89a036b410

View File

@@ -21,6 +21,11 @@ export class TransformInterceptor<T>
context: ExecutionContext,
next: CallHandler,
): Observable<Response<T>> {
// Skip wrapping for WebSocket contexts - gateway handlers return raw data
if (context.getType() === 'ws') {
return next.handle();
}
return next.handle().pipe(
map((data) => ({
success: true,