Questions tagged [rsocket-java]
43 questions
2
votes
1 answer
Spring 5 WebFlux server push notifications via RSocket protocol
The case is the following:
After as clients A and B established connections with a server via RSocket protocol, each of the clients could be notified with their own event(s) (event A or event B) to trigger some action on a client (event X -> action…

Serhii Povísenko
- 3,352
- 1
- 30
- 48
2
votes
1 answer
Server not receiving data in RSocket Fire and Forget case
I have the following RSocket server
@Log4j2
public class NativeRsocketServerFnF {
public static void main(String[] args) {
RSocketFactory.receive()
.frameDecoder(ZERO_COPY)
.errorConsumer(log::error)
.acceptor((setup,…

Ashok Koyi
- 5,327
- 8
- 41
- 50
1
vote
3 answers
How to pass JWT token in Metadata in Rsocket Client in Spring Boot
I have added routes and JWT token in metadata but while passing token from RSocket client to RSocket server it is adding extra bytes in token.
Client side code -----------
ByteBuf simpleAuthentication =…

Shivangi Varshney
- 21
- 3
1
vote
0 answers
How do I add Bearer Token in RSocket client in Spring Boot
I am creating an RSocket Client in Spring Boot using Java. I think there is an issue in adding bearer token from the client end. Please help me in this.
This is my client code
Flux clientRSocket = RSocketConnector.create()
…

Shivangi Varshney
- 21
- 3
1
vote
1 answer
Is RSocket a fifth generation reactive framework?
As per David Karnok's classification 5th generation reactive frameworks are described as below
Reactive-Streams will need extensions to support reactive IO operations in the form of bi-directional sequences (or channels).
operator-fusion by David…

vinilpj
- 128
- 2
- 10
1
vote
0 answers
Error in sending messages over Java RSocket request channel
I'm trying to create a Java RSocket channel.
This is my SpringBoot server side:
@MessageMapping("channel")
Flux channel(Publisher payloads) {
System.out.println("Received Request Channel.");
return Flux
…

Javide
- 2,477
- 5
- 45
- 61
1
vote
1 answer
RSocket-CLI: Unresolved reference: clientTransport
I ran into the error while starting the rsocket-cli:
The full log is here.
I did everything according to the README.md, but I got this error at the first step. It's the ./gradlew --console plain installDist.
What's the most interesting in the code…

Andrei Kulik
- 446
- 1
- 5
- 21
1
vote
2 answers
How to push notifications from server to client using Spring Boot RSocket (Backend) and Angular (rsocket-js)?
I am planning to use RSocket for my notifications system. I wanted to use Spring Boot RSocket for my backend (Java) while for my frontend, I will be using Angular using rsocket-js.
I was able to quickly spin-up a request-stream interaction model…

junbetterway
- 236
- 3
- 13
1
vote
2 answers
Spring RSocket: @DestinationVariable for metadata is not being extracted (not using WebSockets)
I am trying to build some microservices based upon Spring and RSocket. In particular, I need to stream files between two services, so the 'client' sends a Flux as the payload to the 'server'. This works great, but I am presenting a simple echo…

A Bit of Help
- 1,368
- 19
- 36
1
vote
0 answers
RSocket on Micronaut: How to host endpoints and call other endpoints
I understand Micronaut doesn't support RSocket, yet, and a feature request has been pending since Aug 2019.
However, RSocket is not dependent on Micronaut. I saw this tutorial on how to start up a standalone RSocket maven project:…

Anoop Hallimala
- 625
- 1
- 11
- 25
1
vote
1 answer
How to get the remote host from a rsocket
I now receive an rsocket connection in my spring project, and then I want to get its remote address and port, how should I get it?Similar to using socket.getRemoteSocketAddress() to get the remote address of the socket.
@ConnectMapping
public void…

Yu Wang
- 11
- 2
1
vote
0 answers
Spring RSocket high CPU usage after client disconnect
I've created a simple RSocket endpoint with Spring RSocket support:
@Controller
class SampleController {
@MessageMapping("sample")
fun sample(): Flux {
return Flux
.fromIterable(generateSequence(1) { it + 1…

Sven Vidak
- 505
- 1
- 9
- 17
1
vote
1 answer
What happened to FragmentationDuplexConnection?
We had a custom spring boot starter based on rsocket-rpc and we used FragmentationDuplexConnection. After upgrading to Rsocket 1.1.0 and rsocket-rpc 0.3.0, it seems that FragmentationDuplexConnection no longer exists in the code. What replaced…

Mavo
- 595
- 1
- 6
- 12
1
vote
2 answers
RSocket Net client request stream routing metadata to spring boot @MessageMapping routes
Similar to rsocket routing metadata using RSocket-Java for Spring Rsocket Server but for an RSocket Net Client, we use a spring boot @MessageMapping for websocket endpoint routes on port 7000 which return webfluxes depending on the route. For…

rupweb
- 3,052
- 1
- 30
- 57
1
vote
0 answers
RSocket tests fail when run together - but pass individually
I have multiple tests that test different routes and in separate classes that require the setup of an RSocket client and then to dispose the client here's an example below.
@SpringBootTest
public class RSocketClientToServerITest {
private static…

Ahmedie-m
- 309
- 1
- 4
- 13