Replies: 1 comment 2 replies
-
@graemerocher , maybe you could advise something? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I'm using Micronaut version 2.5.12
I have the following issue - I have a Websocket Server application. I have also implemented a custom logic for closing a websocket session. In normal circumstances (like finishing the stream) it works correctly (it closes the session with specified code - taken from io.micronaut.websocket.CloseReason Enum), however, on a shutdown event it sends '1006: Abnormal closure' code instead of the one which I implemented in my shutdown hook. And the execution of close() method in fact doesn't close the session, it's only closed by Netty with above mentioned code (it is invoked from AbstractNettyWebsocketHandler, method handlerRemoved()).
Any idea how this can be resolved.
Please let me know if you need some more details.
Many thanks in advance for help.
Beta Was this translation helpful? Give feedback.
All reactions