Add documentation for callback function of the subscribe method.