Set the callback function that is called when new data is available from the stream.
See Implementation
Set the callback function that is called when new data is available from the stream.