Am 18.07.2012 16:04, schrieb Richard:
> Thanks. But how do you get it to reconnect?
>
> I assume calling connectWS(factory) again? But if reactor has locked the
> main look, this would imply a thread or something needing to call it?
No. There isn't such thing as "reactor lock" with Twisted. Everything
runs in 1 thread (normally), so there isn't a need for locks.
If you want to reconnect to the same server, just issue a connect() like
here:
https://github.com/tavendo/AutobahnTestSuite/blob/master/autobahntestsuite/autobahntestsuite/testee.py#L87
If you want to connect to a different server, you create a new factory
and do connectWs(), again i.e. in clientConnectionLost.
Note, that this is all less an AutobahnPython, but more of a Twisted
question .. it takes a little rethinking doing stuff in an asynchronous
networking framework.
Hope that helps,
Tobias