[Twisted-Python] stop/start client connections with loseConnection in ReconnectingClientFactory

Tobias Oberstein tobias.oberstein at gmail.com
Tue Apr 2 00:56:46 MDT 2019


>>>> The Autobahn guys still show ReconnectingClientFactory in their docs, 
>>
>> Where did you find that? That would be a doc bug, but in the _docs_, 
>> there is no reference to ReconnectingClientFactory
>>
>> We do have some example code using ReconnectingClientFactory though:
>>
> Yeah, this one: 
> https://github.com/crossbario/autobahn-python/tree/master/examples/twisted/websocket/reconnecting 
> 
> 
> Would be good to get that converted...

yeah, agreed.

unlikely to happen though (lack of time) unless someone steps up with a PR

> What's the simplest way to connect a ClientService to a websocket url 
> (ie: ws://host/endpoint or wss://host/endpoint)

you might adapt / start from this (again WAMP, but just a matter of 
using websocket rather than wamp factories/protocols):

https://github.com/crossbario/autobahn-python/blob/master/examples/twisted/wamp/basic/client_using_clientservice.py




More information about the Twisted-Python mailing list