equal
deleted
inserted
replaced
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): |