xmpp

Remote server not found in XMPP

笑着哭i 提交于 2020-01-06 06:56:22
问题 i send Packet to client <iq id="kGufc-4" to="tp@localhsot" from="admin@localhost" type="get"><query xmlns='http://localhost/protocol/disco#info'/></iq> And received <iq id="kGufc-4" to="admin@localhost/testchat" from="tp@localhsot" type="error"><error code="404" type="CANCEL"><remote-server-not-found xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/></error></iq> what is problem??? 回答1: You have two problems with that stanza. 1) You've typod 'localhsot' instead of 'localhost'. 2) You're putting a

How to receive message stanza without sending self presence?

微笑、不失礼 提交于 2020-01-06 06:35:49
问题 I am using mongooseim with Android and Ios application. I just want to receive message from the server from background without sending self presence to anyone because this task is done by system. But I can't receive message stanza until I send my presence to the mongooseIM. Do I missing something or there is a way by which I can get quick update from MongooseIM server in the background without sending presence? 回答1: As far as I understand you all you want to do is sync the messages when you

Cannot follow external database(MySQL) of openfire server quide

三世轮回 提交于 2020-01-06 05:35:10
问题 I have MySQL database which I created on university's server I try to develop android application that can send msg from mobile through XMPP protocol to keep data at my database server(from 1.) At this time, I already downloaded openfire 3.7.0.dmg(MAC OS X) then try to setup server on my laptop My problem is I cannot follow Database Installation Guide the error occurred: Does not have mysqladmin command at my Terminal. So, I cannot create table for openfire. Should I need to install MySQL on

Chat works only one-way with Smack 4.1.7 Android

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-06 03:11:47
问题 I am working on Android Chat app based on Smack 4.1.7 . I have created my XMPP related operations on Saperate class said MyXMPP.java. and in my app's Application class i am initializing MyXMPP class objects. my problem is, suppose we have user 1 and user 2. if user 1 sends message to user 2 then user 2 can get message but cant reply back. means if user 2 trying to reply then user 1 can not get user 2's reply. in short if user 1 initiates chatting then, only user 1 can send message. user 2 can

Chat works only one-way with Smack 4.1.7 Android

女生的网名这么多〃 提交于 2020-01-06 03:11:01
问题 I am working on Android Chat app based on Smack 4.1.7 . I have created my XMPP related operations on Saperate class said MyXMPP.java. and in my app's Application class i am initializing MyXMPP class objects. my problem is, suppose we have user 1 and user 2. if user 1 sends message to user 2 then user 2 can get message but cant reply back. means if user 2 trying to reply then user 1 can not get user 2's reply. in short if user 1 initiates chatting then, only user 1 can send message. user 2 can

facebook chat using strophe, punjab

有些话、适合烂在心里 提交于 2020-01-06 03:08:13
问题 using the answer of my previous question and another post I tried to implement facebook-chat from a browser. Here is what I did: on an ubuntu virtual machine, I have python 2.6.5 , python-twisted-conch 1:10.0.0-2 , python-twisted-names 10.0.0-1 , python-twisted-web 10.0.0-1 and python-twisted-words 10.0.0-2 already installed. I did not install jabberd2 server, I assumed facebook server is the Jabber/XMPP server in my case. Also I did not install pyopenssl. downloaded and untared punjab from

XMPP and ANDROID

核能气质少年 提交于 2020-01-06 01:26:08
问题 I am trying to make XMPP client for android using http://davanum.wordpress.com/2007/12/31/android-just-use-smack-api-for-xmpp/ I have been facing multiple issues in it First of all my host name and service name are both same i.e. web.vlivetech.com Then i do not know which jar file do i ned to include in my lib folder as i previously have included 1- asmack-android-7 but it was giving me error on some classes that NoClassDefFound then now i have removed it and included smack-3.4.1-0cec571.jar

service-unavailable 503 error for file transfer in XMPP with iOS

余生长醉 提交于 2020-01-05 11:38:12
问题 I am using XMPP with iOS for file transfer. I am using following lines of code to send file. But I am continuously getting single error and stuck on issue. <error code="503" type="cancel"><service-unavailable xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/></error> I have used following code in app to send file between two devices. XMPPJID *jid = self.chatUserJID; NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *documentsDirectory =

How to get openfire chat room messages history

假如想象 提交于 2020-01-05 10:11:10
问题 I use Strophe library to connect to an OpenFire XMPP server. How can I receive the chat room messages history ? var o = {to:'roomName@conference.domain.com/youNick'}; var m = $pres(o); m.c('x', {xmlns : 'http://jabber.org/protocol/muc#user'}, null); connection.send(m.tree()); I get only 25 messages when I join room. How to get past 25 message of the chat room ? 回答1: You should add a <history/> element: https://xmpp.org/extensions/xep-0045.html#enter-managehistory. <x xmlns='http://jabber.org

xmpp definitive guide笔记_概述

孤人 提交于 2020-01-05 05:08:14
overview(概述) Domains: XMPP Server部署的域名。大小不敏感。DSN风格。 Users: 在某个域名下用户的虚拟标识,JID的一部分,即用户名@domain.tld, 一般开发者把用户等同于JID? Resources: 客户端连接到XMPP Server里,你可以选择或者服务器分配给你的一个段字符串,可以是任何字符。一般会是使用机器名,位置,或者使用的客户端软件名称。usr@domain.tld/resourceId Internationalization 用户名部分支持所有unicode字符。如 尘@d.cn或者dust@d.cn XMPP URIs xmpp:user@domain.tld?message 将发送a "message" to user@domain.tld. XML流 XMPP的精髓就是xml流。客户端/服务端双向xml流。客户端/服务端交互过程中可以看作为以增量的方式建立一个xml文档。 客户端和服务端之间交互xml片段(snippets),如<message/>,<presence/>和</q>这些片段就叫做xml stanzas. 它是xmpp里面的基本单位。一次可以发送不限数量的stanzas通过(socket)stream. Communication Primitive: 决定stanza含义的几个因素: 1. 元素名