I suppose that if you attempt to create an SO, it will just connect to it if it exists. So, I could just attempt to create it on every appConnect. Do you think there's a problem with that? Will creating it destroy any data already contained in it?
Joachim Bauch wrote: > Hi Bill, > > Interalab schrieb: >> So, if the shared object is created in the appStart method when the >> server starts up, then when the last client goes away, the SO is >> destroyed and can never be re-created because appStart is never >> called again? > > yes. By definition (aka. FMS docs), non-persistent shared objects are > destroyed when the last client disconnects. > You can however call so.acquire() in appStart to make sure, the SOs > exist even if all clients have disconnected. > >> How can we tell if the SO still exists? if ( so.isAcquired() ) . . . >> ??? > > Hmm, I think there currently is no API method that can check this. The > result of so.getEventListeners() _should_ be empty if no more clients > are connected, but I will have to verify ... or maybe better add a method > to check if a SO still exists. > > Joachim > > ------------------------------------------------------------------------ > > _______________________________________________ > Red5 mailing list > [email protected] > http://osflash.org/mailman/listinfo/red5_osflash.org > _______________________________________________ Red5 mailing list [email protected] http://osflash.org/mailman/listinfo/red5_osflash.org
