feat: skip response transformation for WebSocket contexts in the transform interceptor.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user