@ -178,7 +178,7 @@ symmetrically, to make requests from clients and to make requests from servers.
@@ -178,7 +178,7 @@ symmetrically, to make requests from clients and to make requests from servers.
To obtain an `RSocketRequester` on the client side requires connecting to a server along with
preparing and sending the initial RSocket `SETUP` frame. `RSocketRequester` provides a
builder for that. Internally uses RSocket Java's `RSocketFactory`.
builder for that. Internally it builds on `io.rsocket.core.RSocketConnector`.
This is the most basic way to connect with default settings:
@ -331,16 +331,17 @@ infrastructure that's used on a server, but registered programmatically as follo
@@ -331,16 +331,17 @@ infrastructure that's used on a server, but registered programmatically as follo
@ -351,16 +352,17 @@ infrastructure that's used on a server, but registered programmatically as follo
@@ -351,16 +352,17 @@ infrastructure that's used on a server, but registered programmatically as follo
.routeMatcher(PathPatternRouteMatcher()) // <1>
.build()
val handler = ClientHandler() // <2>
val responder =
RSocketMessageHandler.responder(strategies, new ClientHandler()); // <2>
<1> Use `PathPatternRouteMatcher`, if `spring-web` is present, for efficient
route matching.
<2> Create responder that contains `@MessageMaping` or `@ConnectMapping` methods.
<3> Use static factory method in `RSocketMessageHandler` to register one or more responders.
<2> Create a responder from a class with `@MessageMaping` and/or `@ConnectMapping` methods.
<3> Register the responder.
Note the above is only a shortcut designed for programmatic registration of client
responders. For alternative scenarios, where client responders are in Spring configuration,
@ -373,7 +375,7 @@ you can still declare `RSocketMessageHandler` as a Spring bean and then apply as
@@ -373,7 +375,7 @@ you can still declare `RSocketMessageHandler` as a Spring bean and then apply as
@ -387,7 +389,7 @@ you can still declare `RSocketMessageHandler` as a Spring bean and then apply as
@@ -387,7 +389,7 @@ you can still declare `RSocketMessageHandler` as a Spring bean and then apply as
val handler = context.getBean<RSocketMessageHandler>()
@ -404,15 +406,15 @@ See also <<rsocket-annot-responders>>, for more on the programming model.
@@ -404,15 +406,15 @@ See also <<rsocket-annot-responders>>, for more on the programming model.
==== Advanced
`RSocketRequesterBuilder` provides a callback to expose the underlying
`ClientRSocketFactory` from RSocket Java for further configuration options for
keepalive intervals, session resumption, interceptors, and more. You can configure options
`io.rsocket.core.RSocketConnector` for further configuration options for keepalive
intervals, session resumption, interceptors, and more. You can configure options
@ -636,10 +638,8 @@ Then start an RSocket server through the Java RSocket API and plug the
@@ -636,10 +638,8 @@ Then start an RSocket server through the Java RSocket API and plug the
@ -650,10 +650,9 @@ Then start an RSocket server through the Java RSocket API and plug the
@@ -650,10 +650,9 @@ Then start an RSocket server through the Java RSocket API and plug the
val context: ApplicationContext = ...
val handler = context.getBean<RSocketMessageHandler>()