Skip to content

Commit 161966d

Browse files
author
Andreas Pätzold
committed
Add support for OpenLiberty WAS due to direct usage of userProperties of EndpointConfig, instead of retrieving them Session object.
The issue is described here: graphql-java-kickstart#209
1 parent cf922e4 commit 161966d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/graphql/servlet/GraphQLWebsocketServlet.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ public GraphQLWebsocketServlet(GraphQLQueryInvoker queryInvoker, GraphQLInvocati
6363
@Override
6464
public void onOpen(Session session, EndpointConfig endpointConfig) {
6565
final WsSessionSubscriptions subscriptions = new WsSessionSubscriptions();
66-
final HandshakeRequest request = (HandshakeRequest) session.getUserProperties().get(HANDSHAKE_REQUEST_KEY);
67-
final SubscriptionProtocolHandler subscriptionProtocolHandler = (SubscriptionProtocolHandler) session.getUserProperties().get(PROTOCOL_HANDLER_REQUEST_KEY);
66+
final HandshakeRequest request = (HandshakeRequest) endpointConfig.getUserProperties().get(HANDSHAKE_REQUEST_KEY);
67+
final SubscriptionProtocolHandler subscriptionProtocolHandler = (SubscriptionProtocolHandler) endpointConfig.getUserProperties().get(PROTOCOL_HANDLER_REQUEST_KEY);
6868

6969
synchronized (cacheLock) {
7070
if (isShuttingDown.get()) {

0 commit comments

Comments
 (0)