Variable Pacchettino.onDataReceived

Callback triggered when data is received.

class Pacchettino
{
  // ...
  Pacchettino.Result delegate(string, ubyte[]) onDataReceived;
  // ...
}

It is called with the job ID ("raw-<uuid>": status, requeue, sentAt and the is* methods accept it) and the bytes sent with sendData. An exception thrown by the callback counts as Result.FAILED.

The default callback returns Result.FAILED.