xmpp

(十)重新连接模块

2016-06-03  本文已影响23人  AlexLi_

当你网络不好的时候断开连接,当你网络又恢复的时候会自动重新连接

>在XMPPFramework.h中打开  XMPPReconnect.h 文件

>创建 激活

XMPPReconnect *reconnect = [[XMPPReconnect alloc] init];

[reconnect activate:_xmppStream];

就OK了 如果你断开了连接, 每过20秒 xmpp会自动连接

上一篇 下一篇

猜你喜欢

热点阅读