Description
Currently client-side handling involves registering an acceptor, for example like so, which is likely an RSocketMessageHandler bean with manually registered handlers.
Arguably in this case there isn't much reason for applications to be aware of the RSocketMessageHandler
nor to have it as a bean, so we should offer an option to register such client-side handlers directly with RSocketRequester.Builder
, which would internally create the RSocketMessageHandler
and configure it as an acceptor in the RSocketFactory
.
In the Javadoc we should make it clear that registering handlers is a shortcut for creating an RSocketMessageHandler
and configuring it as an acceptor. That latter still remains an option for more advanced cases and that should be made clear.