Closed omegaui closed 1 year ago
Hi. Sure why not, we can add a "onWillClose" and a "'onClosed". If you like you can create MR for that.
@felixblaschke
Hi!
I was about to implement this new feature right now,
but I'm unable to understand what do you mean by onWillClose
callback,
I mean where I should place it.
Does it mean a callback before closing the context?
An implementation is necessary for listening to server close event. Suppose, if this is the case,
There could be many situations at client side to close the context when time arises. Now, if we already have a listener listening to closing event, it would be easy to notify all clients in session from a single code, actually, this is like a extra add-on but will increase code maintainability when usiing this package.