I can't find any callbacks or similar to get notif...
# ktor
h
I can't find any callbacks or similar to get notified when my ServerSSESession is closed. Am I missing something or is that not possible? I want to do some cleanup when the client closes the connection.
a
You can wrap the SSE handler block in
try/finally
and do a cleanup in the
finally
block.
👍 1