All Questions
Tagged with spring-websocket spring-webflux
48
questions
1
vote
0
answers
20
views
Why does Webflux WebSocketHandler returned as a lambda expression share the response, but not when defined as a component
The following configuration that returns WebSocket#handle as a lambda expression shares the Entity to all browser connections.
@Bean
public WebSocketHandler webSocketHandler (ObjectMapper ...
0
votes
0
answers
43
views
Spriing WebFlux WebSocket Handler Mapping and Replacing path for messages
i want to know does anybody know how can i achive of makeing a universal bath based on path variable for websocket, also i would like to know how could i handle message sending to specific url in ...
1
vote
0
answers
167
views
Websockets with Spring WebFlux: properly mix authentication data with event treatment
I develop an application where users connect via WebSocket and exchange messages. I use Spring WebFlux and Reactive WebSockets. Security component provide me with a Mono containing current Principal:
...
0
votes
0
answers
44
views
how to access HTTP headers in webflux websocket WebSocketHandler?
How can I get HTTP headers in my handler?
@Configuration
class WebSocketConfiguration {
@Bean
public HandlerMapping handlerMapping() {
WebSocketHandler webSocketHandler = session ->...
0
votes
0
answers
202
views
Spring WebSocket Reactive Client
I am having quite a hard time conceptually implementing one simple scenario using WebSockets between two backend servers implemented using Spring Boot Webflux and it's WebSocket implementation.
For ...
0
votes
1
answer
120
views
How can we push or published multiple message and keep session open
How can we push or published multiple message one after another to same Web-socket Session in spring?
public Flux<WebSocketSession> openWebSocket() {
Flux<String> input = Flux.just("{\...
2
votes
1
answer
449
views
Spring WebFlux Reactive WebSocket Testing
I am trying to write a test for Webflux Reactive websocket, the test is ok when the assertions fails, but when it is supposed to pass the test keeps running and nothing happens.
Here is the test in ...
2
votes
0
answers
975
views
Using Spring Websocket without STOMP client
I am working on a brownfield project.
It is a websocket server that allows clients to subscribe to desired topics. When an event happens related to a topic, our server will send notification message ...
0
votes
1
answer
1k
views
How to monitor meters in Spring Webflux for a reactor-netty server
I am new to Spring Boot and Spring Webflux. I am working on a Spring Webflux reactor-netty server to handle WebSocket connections. In the simplest sense, this is how the server looks like:
...
@...
0
votes
1
answer
366
views
Rsocket-js Unable to set destination route when connection to channel react native client
I am new to Rsocket and reactive Websocket and I develop an application where I need multiple channels, where my clients can subscribe. Until now I tried 2 solutions but unfortunately non of them ...
0
votes
0
answers
660
views
Spring Reactive Websocket - Sending Messages Dynamically
I'm trying to implement a basic client for WebSocket in Java using ReactorNettyWebSocketClient. I've already created a basic WebSocket service that works as intended (hosted on localhost:8080). My ...
-1
votes
1
answer
1k
views
Spring webflux websocket - Multiple rooms chat
I am currently building a chat application with spring reactive.
Each user can be part of multiple chat rooms.
I am trying to only send each chat message to clients connected to the corresponding ...
1
vote
0
answers
814
views
Spring rsocket security with Webflux security
My Application is a Spring Webflux application with Spring boot version 2.6.6.
Since, I have a chat and notification requirement for the logged in user, trying to use RSocket over websocket for ...
3
votes
0
answers
471
views
Spring Boot - RSocket over websocket - Server responders not working
I am using Spring boot 2.6.3. This is a Spring webflux project and using RSocket over Websoocket for Notification.
Server side:-
build.gradle,
implementation 'org.springframework.boot:spring-boot-...
1
vote
0
answers
875
views
Spring WebFlux with socket.io capabilities
I'm playing around with Spring WebFlux and how to do async I/O in Java but it seems I need to set up a lot of boilerplates for managing websockets. For example, very common operations need to be re-...