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.
  • Does not fire after dispose().

    Parameters

    callbackCallback invoked when connection is established.