From 2fc557a5a90d32fb2cf6ebe2491b031a72507dd3 Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Fri, 31 Aug 2018 11:53:51 +0200 Subject: [PATCH] Improve WebSocket documentation for reactive applications Closes gh-14069 --- .../spring-boot-dependencies/pom.xml | 6 ++++++ .../src/main/asciidoc/spring-boot-features.adoc | 15 ++++++++++++++- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/spring-boot-project/spring-boot-dependencies/pom.xml b/spring-boot-project/spring-boot-dependencies/pom.xml index 5955482a7c..d943773634 100644 --- a/spring-boot-project/spring-boot-dependencies/pom.xml +++ b/spring-boot-project/spring-boot-dependencies/pom.xml @@ -93,6 +93,7 @@ 2.2 1.3 2.0.1.Final + 1.1 1.1.6 3.0.4 3.3.2.Final @@ -1069,6 +1070,11 @@ validation-api ${javax-validation.version} + + javax.websocket + javax.websocket-api + ${javax-websocket.version} + javax.xml.bind jaxb-api diff --git a/spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc b/spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc index 81071b1080..1b10433420 100644 --- a/spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc +++ b/spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc @@ -7709,7 +7709,20 @@ Undertow. If you deploy a war file to a standalone container, Spring Boot assume container is responsible for the configuration of its WebSocket support. Spring Framework provides {spring-reference}web.html#websocket[rich WebSocket support] -that can be easily accessed through the `spring-boot-starter-websocket` module. +for MVC web applications that can be easily accessed through the +`spring-boot-starter-websocket` module. + +WebSocket support is also available for +{spring-reference}web-reactive.html#webflux-websocket[reactive web applications] and +requires to include the WebSocket API alongside `spring-boot-starter-webflux`: + +[source,xml,indent=0,subs="verbatim,quotes,attributes"] +---- + + javax.websocket + javax.websocket-api + +----