The problem with the second approach is what if I call:
before wsClient has finished loading. If I have another
component that is going to use wsClient, but the object hasn't been
created yet, I would get a runtime error, right? Or would Flex keep
things in order to ensure that it is not used by other components
until it is first initialized in the main component?
The first approach of using it as a static variable sounds
good, but how would I go about doing that?