Restricting number of viewers
Hi SE_0208
Just following up from my previous thread.
I wanted to know how to restrict the number of viewers for an application.
I tried this
{
if(application.clients.length > 10)
application.rejectConnection(client)
}
I put that inside application.onAppStart = function() - but it didn't work
I'm not sure if I'm putting it in the right place!
Can you suggest something else? Thanks
