I have a small program that send messages to me using XMPPPY, however, sometimes when sending a message I only receive it on one of the logged in clients. When sending through the gmail interface I always receive it on all logged in clients.
Here is my code:
username = ''
password = ''
class Gtalk():
def send(self, recipient, message):
self.jid=xmpp.protocol.JID(username)
self.client=xmpp.Client(self.jid.getDomain())
self.connection = self.client.connect()
self.auth=self.client.auth(
self.jid.getNode(),
password,
resource=self.jid.getResource()
)
self.client.sendInitPresence(requestRoster=0)
self.client.send(xmpp.protocol.Message(
recipient, message
)
)
g = Gtalk()
g.send('', 'Hello')
Does anybody know how to send a message using XMPPPY that appears on all logged in gmail clients?