In my application the browser window connect with long polling(comet) with the server. If the user open several browser tabs, only one of them(called the master) communicate with the server and serves as a proxy for the other tabs. I want to use flash localConnection to exchange data between the tabs.
When the master is closed one of the other tabs need to become the master. How do I make sure only one of them tries to become the master?
If a user close the tab without flash being able to close the localConnection, will it cause a memory leak?