xmpp

How to uses Smack API UserSearchManager with local server?

人盡茶涼 提交于 2019-12-11 05:58:17
问题 This may look a very basic question but I am having a problem accessing OpenFire search function using this code: try { UserSearchManager search = new UserSearchManager(connection.getConnection()); Form searchForm = search.getSearchForm("search." + server); ... } catch (Exception e) {...} The server here is a String with value something like "192.168.242.132", the code gets error from this line: Form searchForm = search.getSearchForm("search." + server); Essentially, the server is up and

Not able to connect ejabberd server on Amazon using XMPP framework of iOS

白昼怎懂夜的黑 提交于 2019-12-11 05:55:57
问题 I am working on XMPP framework to create Text chat application. We have configure ejabberd server on amazaon ec2. I have tested my application on locally configured server and was working fine but as i replaced host and username with amazone ec2 details i am getting error "Read Operation timed out". I searched for help but issue is still unresolved. Please help me in find out the solution for this. 回答1: I find out solution for my own problem. I downloaded the latest framework from https:/

Unable to Connect my App Server to FCM XMPP Server

牧云@^-^@ 提交于 2019-12-11 05:09:13
问题 I am trying to connect to FCM XMPP server using Openssl TLS I have registered a project and have a Server Key and Sender ID. I follow the notes in https://firebase.google.com/docs/cloud-messaging/auth-server#authorize_an_xmpp_connection All my codes are in C using openssl. Following are the communications between my App Server and FCM-XMPP Server App Server to FCM-XMPP: <stream:stream to='fcm-xmpp.googleapis.com' version='1.0' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org

Is it possible to run XMPP based PHP and Javascript Multiplayer Network Game in FaceBook?

余生颓废 提交于 2019-12-11 04:57:36
问题 let me introduce my story first. To develop a multiplayer network game in facebook, flash used to be a king but it consumes a lot of resources for client and I feel like it isn't worth for a card game. So I come with an idea that front-end will use Javascript (of course with jQuery) and backend with PHP. But for real-time communication, it isn't possible just with PHP and Javascript. It doesn't make sense to record every movement of players in MySQL and display back to another browsers. So I

XMPP Query Group Chat (MUC) directory using search term

帅比萌擦擦* 提交于 2019-12-11 04:56:23
问题 Creating an XMPP client, part of which involves querying the directory for chat rooms whose name matches a specific search term. Lets call this search term SEARCH. The following XML (with the correct to/from) gives me a list of all chat rooms. <iq from='hag66@shakespeare.lit/pda' id='disco2' to='chat.shakespeare.lit' type='get'> <query xmlns='http://jabber.org/protocol/disco#items'/> </iq> example result: <iq xmlns="jabber:client" type="result" id="disco2" from="chat.shakespeare.lit" to=

How to fetch room list from openfire?

三世轮回 提交于 2019-12-11 04:45:59
问题 I am using openfire server and XMPP protocol for chatting and i got success in it. Now i want to implement room chatting. I google lots about it, what i get is 'Joing Room', 'Create Room' but first i want to get list of all room name from conferrance. i have conferance and room in it : #define CONFERENCE_ROOM_SERVER @"chatroomforfriends" #define CONFERENCE_ROOM_NAME @"cr1" 'chatroomforfriends' is conferance name and it contain 'cr1' room. How do i fetch all room name in iOS ? 回答1: As per MUC

Add element without namespace in smack message

為{幸葍}努か 提交于 2019-12-11 04:24:02
问题 I wants to add node element in smack Message . Eg. <myID> is the custom tag which i wants to add in message. like below structure <message to='username@domain' id='12345'><body>Hello</body><myID>33e6cf03-90aa-4281-a36e-902ccdf0657f</myID></message> What i tried so far By creating CustomExtension by implementing DefaultExtensionElement but here its creating message with some namespace specified. <message to='username@domain' id='12345'><body>Hello</body><myID xmlns='somenamespace'>33e6cf03

Sending a custom IQ query (Android)(Smack)

穿精又带淫゛_ 提交于 2019-12-11 04:13:54
问题 Format of result will be this. <iq from='52@localhost' to='20@localhost/Gajim' id='253' type='result'> <query xmlns='someName'> <item subscription='both' jid='1@localhost'/> </query> </iq> I am trying to send a custom iq query with the following format. <iq xmlns="Name" type="get" id="253"> <query xmlns="someName"> <auth type='token'>asd</auth> </query> </iq> From this I understand that I need to send a query with a authorization type token(token id ). Here is my try at that. final IQ iq =

How to set my Name in smack?

微笑、不失礼 提交于 2019-12-11 03:56:59
问题 I can use connection.getRoster(),getName to get roster names of contact. But how to set the name of current authenticated account? 回答1: Log in with a different account? :) Seriously, your account name is tied to your authentication, and there's no way to force the other side to use a particular nickname for you, but if both sides implement XEP-172, you can send a hint to the other side when you subscribe: <presence from='narrator@moby-dick.lit' to='starbuck@moby-dick.lit' type='subscribe'>

How to send and listen to custom xmpp presence packet with asmack the library

三世轮回 提交于 2019-12-11 03:44:03
问题 I'm struggling to listen to contacts' updating of VCard. I'm trying to do this by sending a custom presence that carries some custom information while updating VCard.from the output of the debug,I found that ,whenever such a custom presence is send,it's contact will receive the presence stanza.Unfortunately,when the contact's packetListener can not detect the incoming packet,and then all of the listener added to the connection seems have been removed, that is other packet that can be detected