bet365.com icon indicating copy to clipboard operation
bet365.com copied to clipboard

How to speed up reconnection

Open 286844626 opened this issue 4 years ago • 0 comments

`class MyFactory(WebSocketClientFactory, ReconnectingClientFactory):

def clientConnectionFailed(self, connector, reason):
    print('failed retry!')
    self.retry(connector)

def clientConnectionLost(self, connector, reason):
    self.maxDelay = 10
    print('lost retry!')
    self.retry(connector)

`

286844626 avatar Oct 14 '20 12:10 286844626