appspot xmpp与jabber.org交谈 [英] appspot xmpp talk with jabber.org

查看:105
本文介绍了appspot xmpp与jabber.org交谈的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我连接到gtalk时,我可以在appspot中与我的机器人聊天。但是当我登录到jabber.org时,我无法与我的机器人聊天?什么我需要配置?



testetefsdf @ appspot.com



p / s:bot存在于我的jabber.org名单并在线显示

解决方案

当您想与jabber用户聊天时尝试删除此测试:

  if(xmpp.getPresence(jid).isAvailable())

getPresence()仅适用于Gtalk用户(我确信 python API ,而不是JAVA版本)。

无论如何,粘贴你的代码片段if你可以。


when i connect to gtalk, i able to talk with my bot in appspot. but when i login to jabber.org, i unable to talk with my bot? anything i need to configure?

testetefsdf @ appspot.com

p/s: the bot exist in my jabber.org roster and appear online thou

解决方案

Try to remove this test when you want to chat with jabber user:

if (xmpp.getPresence(jid).isAvailable())

getPresence() works just for Gtalk user (i'm sure for python API, not for the JAVA one).

Anyway, paste your snippet if you can.

这篇关于appspot xmpp与jabber.org交谈的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆