Testing if router is up


I haven’t seen a method for testing if the router (crossbar) is up and running before calling reactor.run(). The result is that if the router isn’t up my client just hangs.

What I’d really like to do is start crossbar in my code, wait until it is fully up and running, then call reactor.run() to start my components.

Any suggestions? What might I have missed?