I am trying to make a project where I want to create one rsocket application that contains both server and client application. I tried a bunch of things but nothing seems to work can someone please help me with that ?
I am trying to make a project where I want to create one rsocket application that contains both server and client application. I tried a bunch of things but nothing seems to work can someone please help me with that ?
Take a look at LocalClientTransport and LocalServerTransport.
This should act like a connection over a websocket, or other transport but without the IO overhead.
RSocketServer.create(new PingHandler())
.payloadDecoder(PayloadDecoder.ZERO_COPY)
.bind(LocalServerTransport.create("test-local-server"))
.block();
Mono<RSocket> client =
RSocketConnector.create()
.payloadDecoder(PayloadDecoder.ZERO_COPY)
.connect(LocalClientTransport.create("test-local-server"));