Skip to content
This repository was archived by the owner on Dec 19, 2023. It is now read-only.

Commit 565a88d

Browse files
authored
Merge pull request #211 from blaugold/fix-subscription-client-timeout
fix(): GraphiQL subscription client timeout is set in seconds instead of milliseconds
2 parents 6171a23 + 37be6cd commit 565a88d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graphiql-spring-boot-autoconfigure/src/main/java/com/oembedler/moon/graphiql/boot/GraphiQLController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ private Map<String, String> getReplacements(String graphqlEndpoint, String subsc
139139
joinJsDelivrPath("graphiql-subscriptions-fetcher", "0.0.2", "browser/client.js")));
140140
replacements.put("props", props);
141141
replacements.put("headers", headers);
142-
replacements.put("subscriptionClientTimeout", String.valueOf(subscriptionsTimeout));
142+
replacements.put("subscriptionClientTimeout", String.valueOf(subscriptionsTimeout * 1000));
143143
replacements.put("subscriptionClientReconnect", String.valueOf(subscriptionsReconnect));
144144
return replacements;
145145
}

0 commit comments

Comments
 (0)