spring-projects / spring-projects/spring-framework
Support Flux in, Flux out for WebSocketSession in WebFlux
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 60.2k
- Forks
- 38.8k
- Avg merge
- 5d 2h
- Merged PRs (30d)
- 27
Description
WebSocketClient as of Webflux 5.2.7 offers only 2 execute methods which confine programmer's logic to WebSocketHandler implementation he passes there.
However, it would've been useful in some cases to expose the received Flux to the outside scope in order to enable its composition with other WS sessions (or reactive functions in general)
If such usage pattern is a first-class API method in RSocket, then it's probably been requested often enough
example implementation:
https://stackoverflow.com/questions/62249016/sending-output-of-one-websocket-client-as-input-to-another
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the WebSocketClient execute methods and WebSocketHandler API described in the issue, then compare the first-class Flux usage mentioned for RSocket. The work is complete when WebFlux offers a clear WebSocketSession API that exposes the received Flux for composition with other sessions or reactive functions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, spring
- Domain
- api, backend-api-design
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100