I'm wondering if it's possible to emit something, in the 'disconnect' handler on server-side before the connection is actually cut or if it's already too late (in case the client disconnected, and in case the server disconnected).
Cause I have a second thread that produces responses and I'd like to be able to send the last one at this time.
If it's not possible this way, but there is another way, I'd love to hear about that
Cheers