Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onClose event for WebSocket on Reactive stack [SPR-16256] #20803

Closed
spring-projects-issues opened this issue Dec 2, 2017 · 3 comments
Closed

onClose event for WebSocket on Reactive stack [SPR-16256] #20803

spring-projects-issues opened this issue Dec 2, 2017 · 3 comments
Assignees
Labels
in: core status: declined type: enhancement

Comments

@spring-projects-issues
Copy link
Collaborator

@spring-projects-issues spring-projects-issues commented Dec 2, 2017

Sola opened SPR-16256 and commented

I've tried doOnTerminate doOnCancel doOnSubscribe on the sending flux, but all of them won't get invoked when a WebSocket connection incoming or closing. I'm wondering how can I get noticed when a WebSocket connection is being closed?


Affects: 5.0.2

Issue Links:

  • #20674 WebSocketSession should expose method to indicate whether it is still active ("is duplicated by")
@spring-projects-issues
Copy link
Collaborator Author

@spring-projects-issues spring-projects-issues commented Dec 3, 2017

Rossen Stoyanchev commented

That will be on the receiving Flux, which represents the connection from the server. The sending side is provided and controlled by the application.

@spring-projects-issues
Copy link
Collaborator Author

@spring-projects-issues spring-projects-issues commented Dec 3, 2017

Rossen Stoyanchev commented

Resolving for now but feel free to comment.

@spring-projects-issues
Copy link
Collaborator Author

@spring-projects-issues spring-projects-issues commented May 17, 2018

Rossen Stoyanchev commented

Note the documentation has been updated to reflect this in more detail. Here is a link to the 5.0.7 snapshots.

@spring-projects-issues spring-projects-issues added status: declined type: enhancement in: core labels Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core status: declined type: enhancement
Projects
None yet
Development

No branches or pull requests

2 participants