Re: stop/start client connections with loseConnection in ReconnectingClientFactory
Tobias Oberstein <[email protected]> Tue, 2 Apr 2019 08:56:46 +0200
| Newsgroups | gmane.comp.python.twisted |
|---|---|
| Message-ID | <[email protected]> |
>>>> 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 _______________________________________________ Twisted-Python mailing list [email protected] https://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python