TcpConnection.onClose
Set the close callback.
Fires when the remote end closes the connection or a fatal error occurs. May fire after close() if data was still pending. Does not fire after dispose().
- Thread affinity: event loop thread only. Non-reentrant.
- Does not fire after
dispose().Parameters