I need to write a room attribute logging the time a client leaves that room and I'm doing it by having a Flash admin app running constantly logged into the relevant room and this handles the CLIENT_DISCONNECTED event from ClientManager, subsequently writing the attribute.
Thing is I don't want to have to rely on having an app always running for the corresponding room and would much rather put all this into a module. The rooms in the system are all created dynamically which excludes the possibility of writing room modules - which leaves server modules. I'm not a java coder but have followed the procedures documented here and successfully got a server module loading on server start. I think I can now handle java syntax well enough but I still don't know what technique I would use. I can't think how I can listen for client removal from any existing room and then write an attribute to the room that client just left.
Any tips?
-Steve