Topics

Forum Topics not found

Replies

opalodemo
20 Dec 2023, 00:32 ( Updated at: 21 Dec 2023, 17:21 )

RE: ProtoHeartbeatEvent

I have these methods in my app  in python but it never returns anything and the connection drops after 30 seconds, what I have wrong?

 


    # ----------------------------------------------------------------------------------------    
   def pruebas_loopincall(self):       
       lc = LoopingCall(self.enviar_señal)               
       lc.start(3)

   

   # ----------------------------------------------------------------------------------------    
   def enviar_señal(self):

       request = ProtoHeartbeatEvent()
       deferred  = self.client.send(request, responseTimeoutInSeconds = 60)                        
       deferred.addTimeout(60, reactor)            
       print("deferred", deferred)

 

 


@opalodemo