We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9eb9dde commit 7c2b3bdCopy full SHA for 7c2b3bd
src/main/java/graphql/servlet/GraphQLContext.java
@@ -64,6 +64,13 @@ public Optional<Session> getSession() {
64
return Optional.ofNullable(session);
65
}
66
67
+ public Optional<Object> getConnectResult() {
68
+ if (session != null) {
69
+ return Optional.ofNullable(session.getUserProperties().get(ApolloSubscriptionConnectionListener.CONNECT_RESULT_KEY));
70
+ }
71
+ return Optional.empty();
72
73
+
74
public Optional<HandshakeRequest> getHandshakeRequest() {
75
return Optional.ofNullable(handshakeRequest);
76
0 commit comments