【发布时间】:2015-02-27 15:29:18
【问题描述】:
我正在开发 GCM 云连接服务器 (XMPP)。我正在使用建议的 Smack API 4.0.6 库。
我应该如何实现org.jivesoftware.smack.ConnectionListener定义的每个方法
void authenticated(XMPPConnection connection)
void connected(XMPPConnection connection)
void connectionClosed()
void connectionClosedOnError(Exception e)
void reconnectingIn(int seconds)
void reconnectionFailed(Exception e)
void reconnectionSuccessful()
我能找到的唯一示例只是注销消息。
当我的服务器失去上游连接时,“干净”重新连接的正确方法是什么?
【问题讨论】:
标签: android xmpp google-cloud-messaging