asmack BOSHConnection无法连接

时间:2014-09-29 22:47:35

标签: android xmpp asmack bosh

我正在使用:asmack-android-19-0.8.10.jar

开发Android聊天应用

服务器端正在使用BOSH协议并发送此类数据:

{
    "Domain":"domain",
    "boshUrl":"http://domain:7070/http-bind/"
}

我这样连接:

BOSHConfiguration  configuration = new BOSHConfiguration ("domain");
configuration.setSASLAuthenticationEnabled(false);
BOSHConnection connectionBosh = new BOSHConnection (configuration);
connectionBosh.connect();

我有一个XMPPException: Timeout reached for the connection to null:0.: remote-server-timeout(504)

我做错了什么?

谢谢!

0 个答案:

没有答案