Esempio n. 1
0
 def onClose(self, wasClean, code, reason):
     # print('onclose')
     MyClientProtocol.bot.say(
         '[RatTracker] Lost connection to RatTracker! Trying to reconnect...'
     )
     MyClientProtocol.bot.say(
         '[Websocket] Closed connection with Websocket. Reason: ' +
         str(reason), MyClientProtocol.debug_channel)
     WebSocketClientProtocol.onClose(self, wasClean, code, reason)
Esempio n. 2
0
 def onClose(self, wasClean, code, reason):
     # print('onclose')
     MyClientProtocol.bot.say('[RatTracker] Lost connection to RatTracker! Trying to reconnect...')
     MyClientProtocol.bot.say('[Websocket] Closed connection with Websocket. Reason: ' + str(reason), MyClientProtocol.debug_channel)
     WebSocketClientProtocol.onClose(self, wasClean, code, reason)