Sets the callback that will be invoked when data is received on this channel.
the lambda to handle received data