javipalanca / spade

Smart Python Agent Development Environment
MIT License
258 stars 98 forks source link

Agents ignoring offline messages #84

Open dmvieira opened 4 years ago

dmvieira commented 4 years ago

Description

When you send messages and agents are offline or in unavailable state are ignored when agent back to available state.

What I Did

javipalanca commented 4 years ago

Yes, this is a feature of XMPP. You cannot send a message to an offline agent unless your server supports and has active the XEP-0136: Message Archiving.

dmvieira commented 4 years ago

But I'm using Ejabberd and its showing offiline messages, but when agent is up all messages are consumed and ignored

javipalanca commented 4 years ago

Hi. I was guessing why this issue happens and it is because supporting offline messages (XEP-0013: Flexible Offline Message Retrieval) requires a proactive action from the client (and also an implementation of the extension in the server side). This action is not still included in SPADE, but since it is a good feature I'll try to include it in future releases following https://xmpp.org/extensions/xep-0013.html.