Use scheduleAfter to call a 2nd function after getting reply from kodi with the url
in the function you assigned to socket.onClose, do the following:
socket.onClose = function() {
CF.activity().scheduleAfter(100,myNextFunctionThatNeedsToBeCalled);
}
Dev Guide should have an example showing how to do this.
Last edited by Lyndel McGee on August 6, 2020 13:45.