UdpSocket.onError

void onError(ErrorCallback callback) @property @trusted

Set the error callback.

Callback contract: fires on I/O errors on the loop thread. Does not fire after dispose().

Parameters

callbackCallback invoked on socket errors.