How to track an objects state in time?
<p>In my script I read messages from socket and change the state of some objects in memory depending on the content in message. Everything works fine.</p>

<p>But I want to implement deletion of non-active objects: for example, if there's no message for specified object during some time, it should be deleted. What is the best way to do it ?    </p>
