TcpConnection.onError

void onError(ErrorCallback callback) @property @trusted

Set the error callback.

Fires on connection errors. After this callback, the connection enters an error state; onClose may or may not follow. Thread affinity: event loop thread only. Non-reentrant.

Parameters

callbackCallback invoked on connection errors.