-
Now it is possible to add consumer to some requests. For example it is supported by MAMModule:
mamModule.query(start = Date().time - 7 * 86400000, rsm = q).response { res -> res.onSuccess { println("Complete: ${it.complete}") } }.consume { fs: ForwardedStanza<Message> -> println("Received $fs") }.send()
So instead of listening
MAMMessageEvent
developer can useconsume{}
. Of course event still will be fired!
Type |
New Feature
|
Priority |
Normal
|
Assignee | |
Spent time |
0
|
Issue Votes (0)
Watchers (0)
Allow to handle multi stanza responses. Like in MAM: single IQ stanza requests for history. Server starts sending many Message stanzas and at the end server sends result IQ stanza for initial request. It will be nice if all those messages can be handled by single handler added to Request.