Am 20.06.2014 01:39, schrieb Dennis Xiloj:
> Hi!
>
> I'd just discovered crossbar and wamp, it seems very cool and i tink i
> will use it a lot in my python projects.
Great! Please keep us updated on what you do / progress!
>
>
> I have benn testing the demos and the examples, and there is something i
> miss when working with a python frontend: the autobahn.js implementation
> keeps trying to reconnect after a connection lost. With python i have no
> idea how to acomplish the same thing.
>
> Does someone have an example of this?
With Autobahn/Twisted, the "recommended" way of making clients
automatically reconnect is by mixing in Twisted ReconnectingClientFactory:
https://github.com/tavendo/AutobahnPython/blob/master/examples/twisted/websocket/echo_variants/client_reconnecting.py
http://twistedmatrix.com/documents/current/api/twisted.internet.protocol.ReconnectingClientFactory.html
Hope this helps,
/Tobias