This website uses cookies to enhance site navigation, analyze site usage, and assist in our marketing efforts. By clicking “Accept All” you are providing your consent to our use of all cookies. Alternatively, please provide your choice by pressing “Customize Cookies”. For more information, please read our Privacy policy
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