TcpConnection.onConnect

void onConnect(ConnectCallback callback) @property @trusted

Set the connect callback.

Fires once when the TLS/TCP handshake completes successfully. Thread affinity: event loop thread only. Non-reentrant.

Parameters

callbackCallback invoked when connection is established.