Commit 79e4d135 authored by Brian Clozel's avatar Brian Clozel

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
parent 8791b696
...@@ -2989,6 +2989,8 @@ In case of a WebFlux application (i.e. of type `WebApplicationType.REACTIVE`), t ...@@ -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 #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. 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: Besides the dependency requirements, the only required configuration is to define a port for that server:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment