From 79e4d1354da792e40d12f80c2501ed4e1decf1cc Mon Sep 17 00:00:00 2001 From: Brian Clozel Date: Fri, 20 Sep 2019 19:20:32 +0200 Subject: [PATCH] Warn about RSocket web server compatibility This commit warns developers about the fact that plugging RSocket into an existing web server is only possible with Reactor Netty web servers. RSocket itself is using Reactor Netty, so this is why we can plug an RSocket over websocket handler in an existing Reactor Netty handler. This feature is not possible with other web servers, as existing APIs do not make that possible. Fixes gh-17494 --- .../src/main/asciidoc/spring-boot-features.adoc | 2 ++ 1 file changed, 2 insertions(+) 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 6c0ede8e28..9d7523aea3 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 @@ -2989,6 +2989,8 @@ In case of a WebFlux application (i.e. of type `WebApplicationType.REACTIVE`), t #spring.rsocket.server.port= # no port is defined ---- +WARNING: Plugging RSocket into an existing web server is only supported with Reactor Netty, as RSocket itself is built with that library. + The only other way to create an RSocket server is to start an independent, embedded RSocket server. Besides the dependency requirements, the only required configuration is to define a port for that server: