Questions tagged [rsocket]

RSocket is a binary protocol, providing Reactive Streams semantics over the network, for byte stream transports such as: TCP, Websockets, and Aeron.

RSocket is a binary application-level communication protocol, providing Reactive Streams semantics over the network, for byte stream transports such as: TCP, Websockets, and Aeron.

It enables the following symmetric interaction models via async message passing over a single connection:

  • request/response (stream of 1)
  • request/stream (finite stream of many)
  • fire-and-forget (no response)
  • channel (bi-directional streams)

RSocket supports session resumption, to allow resuming long-lived streams across different transport connections. This is particularly useful for mobile<->server communication when network connections drop, switch, and reconnect frequently.

More Information

226 questions
2
votes
2 answers

Spring RSocket over WebSocket - Access user information from HTTP session

In my web application, users login using a username/password combination and get a session cookie. When initiating a WebSocket connection, I can easily access the user information in the WebSocketHandler, for example: @Component public class…
2
votes
1 answer

Does Spring Cloud Gateway support Rsocket for load-balancing?

I'm implementing a microservices system with Spring Boot, and I want to have a service that using Rsocket to make real-time connecting between user and system. But in the document of Spring Cloud Gateway, that's seem not support Rsocket. Is this…
Miluzz
  • 35
  • 6
2
votes
1 answer

RSocket and Spring not handle multiple requests

I play with RSocket together with Spring boot. I want to make simple request-response example. As example I took code from this link: https://www.baeldung.com/spring-boot-rsocket#request-response Source…
sadsax
  • 93
  • 1
  • 5
2
votes
0 answers

How do I get Authentication with rsocket and JWT?

Issues I'm trying to make a chat application with RSocket-java and I want to save Authentication in ReactiveSecurityContextHolder. When I get Context from ReactiveSecurityContextHolder, it always says 'empty'. But if I debug…
HongJeongHyeon
  • 151
  • 2
  • 9
2
votes
0 answers

rsocket can't run separate tab in my browser

I have a demo app front-end using angular. I'm using Rsocket and resumeable for the community with my server-side (spring-boot). It runs very well when I open a single tab in my browser but when I open a new tab while the current tab still keeps…
2
votes
1 answer

Parallel requests from one client processed in series in RSocket

I expect that all invocations of the server will be processed in parallel, but it is not true. Here is simple example. RSocket version: 1.1.0 Server public class ServerApp { private static final Logger log =…
2
votes
3 answers

How to serialise a POJO to be sent over a Java RSocket?

I'm trying to send a POJO over an RSocket requestStream: import java.io.Serializable; class GreetingRequest implements Serializable { private String name; public GreetingRequest() {} public GreetingRequest(String name) { …
Javide
  • 2,477
  • 5
  • 45
  • 61
2
votes
1 answer

Is it possible to broadcast with RSockets?

My question: I have implemented RSockets on my back-end (java spring boot) and on my front-end (React.js). My front-end and back-end are able to communicate. However, I would like to know if it is possible to broadcast messages to multiple connected…
August Jelemson
  • 962
  • 1
  • 10
  • 29
2
votes
0 answers

Is it possible to use RSocket in android with kotlin?

I'm trying to use Rsocket in android to communicate with the spring-boot server with kotlin. unfortunately, rsocket doesn't have good documentation. I try this code from the rsocket kotlin Github pages but I got an error. This is my…
saeed-pasa
  • 29
  • 1
  • 8
2
votes
0 answers

Chat Application using Spring boot RSocket

I am using Spring boot 2.5.0 with the react front end. Trying to use RSocket for building a chat application. Came across the following links. But, still not clear on sending message to a particular user. RSocket doc…
user1578872
  • 7,808
  • 29
  • 108
  • 206
2
votes
2 answers

What is the difference between RSocket + TCP and RSocket + WebSocket?

I am completely new to RSocket. I read the FAQ and the motiviations page (and skimmed the Protocol page) and understand that RSocket can be used on top of TCP, WebSocket and Aeron. But what I don't understand is what the differences are between…
RatManMan
  • 63
  • 6
2
votes
0 answers

SpringBoot RSockets Kotlin - Missing 'rsocketResponse'

I'm trying to make example chat application and I'm getting strange error when using fire-and-forget from my ReactJs rsocket-websocket-client. The only thing I found GitHub - Fix RSocket Fire and forget handling with Kotlin Could there be a problem…
Michal
  • 803
  • 2
  • 9
  • 26
2
votes
1 answer

Spring WebFlux using RSocket: Kotlin coroutines Flow vs Reactor Flux message format

Is there any difference in IO traffic when we use Spring WebFlux's RSocket (over WebSockets) support to emit values using Kotlin Coroutines Flow and Reactor Flux? @MessageMapping("stream") suspend fun send(): kotlinx.coroutines.flow.Flow
Peter
  • 1,512
  • 1
  • 22
  • 40
2
votes
2 answers

RSocket Java Spring @AuthenticationPrincipal with JWT

How can we use @AuthenticationPrincipal with a RSocket Method @AuthenticationPrincipal Mono token public Mono uppercase(String s, @AuthenticationPrincipal Mono token) { //Token is always null …
dk-it
  • 21
  • 2
2
votes
1 answer

Java RSocket client connect with Spring RSocket channel

I have simple Spring boot RSocket service @MessageMapping("msend") public Flux msend(String message) { log.info("msend channel publish " + message); return Flux.just(message, " "+System.currentTimeMillis()); } It…
Armen Arzumanyan
  • 1,939
  • 3
  • 30
  • 56