HI all,
I am currently working with the headless client and am unsure of how the cleanup needs to be handled. My understanding is that the application does not cleanup any headless clients on its own and I am needing a way for the user to clean up on logout(which is handled with a global variable storing the client id), onHide, when the solution is closed, and time outs?
Could someone provide me with some same code, or sample solution in which I could look at or utilize to handle the situations mentioned above?
Currently I have the client id stored into a global variable. This variable is set with a singleton type of method so that the users only have one valid client open at a time. Should I store the client IDs into an array instead of a single var? and how/when could I clean up the invalid clients.
Thanks