TcpConnection.onClose
void onClose(CloseCallback callback) @property @trustedSet the close callback.
Parameters
callback | Callback invoked when the connection closes. Callback contract: the final callback for this connection. Fires on the event loop thread. Does not fire after dispose(). |