From 5a065fd200decd7e9bab6e81e73ebf1e6057ecc3 Mon Sep 17 00:00:00 2001 From: Jan Martiska Date: Wed, 15 Nov 2023 12:19:04 +0100 Subject: [PATCH] More missing websocket failure handling --- .../graphql/client/vertx/dynamic/VertxDynamicGraphQLClient.java | 2 +- .../client/vertx/typesafe/VertxTypesafeGraphQLClientProxy.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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(() -> {