availability of reason for connection closing in ConnectionClosedHandler
Closed this issue · 2 comments
woffs commented
Is there a possibility to get the string of ConnectionClosedException String inside the handler when using addConnectionClosedHandler? Maybe there needs to be another signature for that, with (e -> IO ()) instead of just IO (). Or is there another possibility to get the reason string for closed connections?
hreinhardt commented
It's not supported right now. But we have addChannelExceptionHandler
which gives you the exception for individual channels.
If that doesn't work for you, I agree that it would make sense to add the exception as an additional parameter to the addConnectionClosedHandler
function.
woffs commented
Well, I'm fine with addChannelExceptionHandler
. :-)