From 27e883164f6cbfaf0b1ad1baa60050947d84e2a1 Mon Sep 17 00:00:00 2001 From: Rossen Stoyanchev Date: Tue, 6 Jul 2021 16:34:21 +0100 Subject: [PATCH] Polishing websocket sample --- samples/webflux-websocket/README.md | 4 +++- .../webflux-websocket/src/main/resources/static/index.html | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/samples/webflux-websocket/README.md b/samples/webflux-websocket/README.md index c07548dc..fc766896 100644 --- a/samples/webflux-websocket/README.md +++ b/samples/webflux-websocket/README.md @@ -2,4 +2,6 @@ - Reactive [DataFetcher's](src/main/java/io/spring/sample/graphql/SampleWiring.java), for queries and subscriptions. - [WebFilter](src/main/java/io/spring/sample/graphql/ContextWebFilter.java) to insert Reactor `Context` and check it can be accessed in [DataRepository](src/main/java/io/spring/sample/graphql/DataRepository.java). - - Subscription [tests](src/test/java/io/spring/sample/graphql/SubscriptionTests.java) using Reactor's `StepVerifier` to verify the stream. \ No newline at end of file + - Subscription [tests](src/test/java/io/spring/sample/graphql/SubscriptionTests.java) using Reactor's `StepVerifier` to verify the stream. + + GraphiQL does not support subscriptions. There is a basic index.html page that logs subscriptions the console. \ No newline at end of file diff --git a/samples/webflux-websocket/src/main/resources/static/index.html b/samples/webflux-websocket/src/main/resources/static/index.html index 03db5492..db9148ad 100644 --- a/samples/webflux-websocket/src/main/resources/static/index.html +++ b/samples/webflux-websocket/src/main/resources/static/index.html @@ -6,6 +6,7 @@ +

Check the console for subscription messages.