runtime/WampClient.py
branch#2486
changeset 2193 259df9ecf9ca
parent 1955 a1ea9856013a
child 2194 35d6b9321ffd
equal deleted inserted replaced
1958:67f0d7ff7d3e 2193:259df9ecf9ca
   107         _WampSession = None
   107         _WampSession = None
   108         print(_('WAMP session left'))
   108         print(_('WAMP session left'))
   109 
   109 
   110 
   110 
   111 class ReconnectingWampWebSocketClientFactory(WampWebSocketClientFactory, ReconnectingClientFactory):
   111 class ReconnectingWampWebSocketClientFactory(WampWebSocketClientFactory, ReconnectingClientFactory):
       
   112     def buildProtocol(self, addr):
       
   113         self.resetDelay()
       
   114         return ReconnectingClientFactory.buildProtocol(self, addr)
       
   115 
   112     def clientConnectionFailed(self, connector, reason):
   116     def clientConnectionFailed(self, connector, reason):
   113         print(_("WAMP Client connection failed (%s) .. retrying .." % time.ctime()))
   117         print(_("WAMP Client connection failed (%s) .. retrying .." % time.ctime()))
   114         ReconnectingClientFactory.clientConnectionFailed(self, connector, reason)
   118         ReconnectingClientFactory.clientConnectionFailed(self, connector, reason)
   115 
   119 
   116     def clientConnectionLost(self, connector, reason):
   120     def clientConnectionLost(self, connector, reason):