Throughout my testing it seems that unless you explicitly reject the connection, a client connecting to an app has the connection accepted.
I would like to delay that and wait until I get a response back for a web service call before allowing the client to connect. Is there a way to do that?
For example, in FMS you would just not call acceptConnection on the client object and the client would go into limbo until you told that client object specifically to connect up. That only happens if you declare the onConnect method in the main.asc file. I would like to mimic that behaviour so I can wait for the response to come back from the web server with the information I need for further processing of the client.