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

UnsupportedOperationException when closing WebSocketSession on Reactive stack [SPR-16214] #20762

spring-issuemaster opened this issue Nov 18, 2017 · 1 comment


None yet
2 participants
Copy link

commented Nov 18, 2017

Sola opened SPR-16214 and commented

when closing WebSocketSession with WebSocketSession#close, It gives me the following error:

java.lang.UnsupportedOperationException: Currently in Reactor Netty applications are expected to use the Cancellation returned from subscribing to the "receive"-side Flux in order to close the WebSocket session.
	at org.springframework.web.reactive.socket.adapter.ReactorNettyWebSocketSession.close( ~[spring-webflux-5.0.2.BUILD-SNAPSHOT.jar:5.0.2.BUILD-SNAPSHOT]

It confused me because I don't know how to obtain the Cancellation that returned from subscribing

Affects: 5.0.1

Referenced from: commits 30c0616


This comment has been minimized.

Copy link
Collaborator Author

commented Jan 9, 2018

Rossen Stoyanchev commented

Basically that's saying that Reactor Netty does not provide a way to close the WebSocketSession from anywhere. I have tried to make the message better, hope this helps 30c061.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.