stream-management

Ejabberd with Stream management (XEP-198) not using offline message hook

回眸只為那壹抹淺笑 提交于 2020-03-21 10:35:33
问题 We are developing an app with a chat feature. We have an ejabberd (15.02) configured to use mod_offline_post to use the offline message hook and forward all messages for offline clients to an url of our own which then forwards to the GCM. However as we are developing an app, we also need XEP-198 (stream management) enabled to handle connection loss. This is working fine in itself. Streams are created and resumed, messages are acknowledged. The problem is, that the jabber is waiting for a

Enable stream management xmpp connection smack 4.1

时光毁灭记忆、已成空白 提交于 2019-12-10 11:26:35
问题 I tried enabling stream management(XEP-0198) by this piece of code XMPPTCPConnectionConfiguration connConfig = XMPPTCPConnectionConfiguration.builder().setHost(HOST) .setPort(PORT).setDebuggerEnabled(true).setSecurityMode(SecurityMode.disabled) .setUsernameAndPassword(USERNAME, PASSWORD).setServiceName(SERVICE).build(); XMPPTCPConnectionconnection = new XMPPTCPConnection(connConfig); connection.setPacketReplyTimeout(TIME_OUT); connection.connect(); connection.login(); connection