Can you show the line of code, where you call the headlessclient and which syntax you use the set the callback method?