python 2.7 - sleekxmpp send message to all the resource with same user name -


I am trying to log on to all the resources with a username from user-b. But only getting the first resource message logged in. It is similar to the presence of aired on all resources within the user. Is this a way to use Smooth-XMPP?

I tried to use send_message

  self.send_message (mto = 'userA @ testerver', mbody = 'send - chat message', mtype = 'chat ')  

But it was only received by the first resource that was logged in.

The server I am using is Open Fire.

This is not a sender, not a sender's server, but the recipient's server controls that receiver None of the resources of type = chat '. Generally, this is based on the priority of the preses set by the recipient's resources.

Although some are workmen:

  • use a type = 'headline' message ():

    If the 'to' address is a bare JID, then the message is distributed to all recipients of available resources to non-negotiable presence priority and deliver messages to at least one of those resources;

  • Ask the recipient to use the client who supports it. This allows customers to receive every chat message.

  • If you have a subscriber's attendance attendance, you can send a different message to each resource, but this is a very bad idea in many cases (one of them: If there may be a duplicate in offline storage, some resources can go offline in real time).


Comments