diff --git a/client/implementation-vertx/src/main/java/io/smallrye/graphql/client/vertx/dynamic/VertxDynamicGraphQLClient.java b/client/implementation-vertx/src/main/java/io/smallrye/graphql/client/vertx/dynamic/VertxDynamicGraphQLClient.java index 0e56b3a32..e9a1b32b0 100644 --- a/client/implementation-vertx/src/main/java/io/smallrye/graphql/client/vertx/dynamic/VertxDynamicGraphQLClient.java +++ b/client/implementation-vertx/src/main/java/io/smallrye/graphql/client/vertx/dynamic/VertxDynamicGraphQLClient.java @@ -460,7 +460,7 @@ private Multi executeSubscriptionOverWebsocket(JsonObject json) { webSocketHandler().subscribe().with(handler -> { handlerRef.set(handler); operationId.set(handler.executeMulti(json, rawEmitter)); - }); + }, rawEmitter::fail); }); return rawMulti .onCancellation().invoke(() -> { diff --git a/client/implementation-vertx/src/main/java/io/smallrye/graphql/client/vertx/typesafe/VertxTypesafeGraphQLClientProxy.java b/client/implementation-vertx/src/main/java/io/smallrye/graphql/client/vertx/typesafe/VertxTypesafeGraphQLClientProxy.java index f9b385882..508b4fb79 100644 --- a/client/implementation-vertx/src/main/java/io/smallrye/graphql/client/vertx/typesafe/VertxTypesafeGraphQLClientProxy.java +++ b/client/implementation-vertx/src/main/java/io/smallrye/graphql/client/vertx/typesafe/VertxTypesafeGraphQLClientProxy.java @@ -217,7 +217,7 @@ private Multi executeSubscriptionOverWebsocket(MethodInvocation method, webSocketHandler().subscribe().with(handler -> { handlerRef.set(handler); operationId.set(handler.executeMulti(request, rawEmitter)); - }); + }, rawEmitter::fail); }); return rawMulti .onCancellation().invoke(() -> {