I am trying to publish something in a infinite loop. But its not working. If I try the same code without the loop it seems to work fine.
while True:
print 'XYZ'
self.publish(str(gameId), [obj], [], {}, {'acknowledge': True})
#self.publish(str(gameId), [obj])
time.sleep(5)
The above code prints 'XYZ' infinitely but I am not able to receive the publish on my client. The below code works fine and I receive the obj publish sends:
self.publish(str(gameId), [obj])
self.publish(str(gameId), [obj])
self.publish(str(gameId), [obj])