TcpConnection.onConnect
Set the connect callback.
Fires once when the TLS/TCP handshake completes successfully.
- Thread affinity: event loop thread only. Non-reentrant.
- Does not fire after
dispose().Parameters
callbackCallback invoked when connection is established.