xmpp

How to create/ update/ retrieve user vCard using XMPPFramework and OpeFire on iOS

柔情痞子 提交于 2019-12-21 05:36:15
问题 As the title suggests,I am trying to create a vcard for my user and send it to the server, but it seems that it doesn't work, any ideas? i will much appreciate any help Here is my code together with the stream connect and authentication, I included thses part bacause there may also be something wrong with them, as I am a noob in working with xmpp framework, the iOS client thaI use is: https://github.com/robbiehanson/XMPPFramework the .h class code is: #import <UIKit/UIKit.h> #import

How make video call with ejabberd?

一世执手 提交于 2019-12-21 04:57:21
问题 How make video call with ejabberd ( like msn and skype ) ? 回答1: ejabberd doesn't handle audio/video natively. Audio and video is handled through the Jingle (XEP-0166), which is client-to-client. If you want to place audio or video calls you should make sure both clients support Jingle through normal serivce discover means (see section 11 of XEP-0166). There aren't a lot of clients that do this right now, but Psi, at least, supports it in more recent builds. 回答2: You can try using Jingle Nodes

Chat server with websocket+node.js vs a native client with xmpp

折月煮酒 提交于 2019-12-21 04:30:53
问题 I couldn't find any reasonable benchmarks regarding comparison between a chat client that runs with using node.js chat server V.S. a client that works with xmpp. I know node.js is async and as far as I know so does xmpp . However, my main concern is performance with same amount of concurrent users. I would need this information to write an android app. Would like to know your opinions and advantages/disadvantages using both systems. Thanks in advance. 回答1: While I understand what you're

Validating an XMPP jid with python?

流过昼夜 提交于 2019-12-21 04:22:19
问题 What is the correct way to validate an xmpp jid? The syntax is described here:, but I don't really understand it. Also, it seems pretty complicated, so using a library to do it would seem like a good idea. I'm currently using xmpppy, but I can't seem to find how to validate a jid with it. Any help appreciated! 回答1: First off, the current best reference for JIDs is RFC 6122. I was just going to give you the regex in here, but got a little carried away, and implemented all of the spec: import

Good C# XMPP Library supporting Group Chat and TLS or SSL Encryption [closed]

旧时模样 提交于 2019-12-21 02:59:30
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . So I have been struggling with finding a decent C# library to use with XMPP that supports either SSL or TSL encryption between the clients and the server. I am hoping that someone can recommend I library that meets some of my needs and is fairly well supported/documented. Also perhaps someone can confirm my

Google Cloud Messaging over XMPP protocol (server working with PHP and XMPPHP). How does it work?

大兔子大兔子 提交于 2019-12-21 02:21:28
问题 maybe you heard already about it. It was announced at the Google IO maybe one month ago. Google Cloud Messaging was only downstream (server --> phone), but now with the enhancement CCS (cloud connection server) you can send messages upstream over a persistent TCP connection thanks the XMPP protocol. I have already designed an application which works with GCM and HTTP. It uses the gcm library and the classes that are packed in there (like GCMRegistrar). This classes are now deprecated, and

How to get DiscussionHistory for MultiUserChat room using aSmack?

回眸只為那壹抹淺笑 提交于 2019-12-21 02:03:26
问题 How to get the DiscussionHistory of a MUC room from MultiUserChat ? I am able to create MultiUserChat instance and room by using aSmack library, now I want to show all the previous conversations that happened in the room. Anybody experienced in the same please help me. I Google searched a lot about this but still I did't get any proper documentation / explanation on this. 回答1: DiscussionHistory history = new DiscussionHistory(); history.setSince(date); muc.join(nickname, null, history,

How to get DiscussionHistory for MultiUserChat room using aSmack?

拜拜、爱过 提交于 2019-12-21 02:03:23
问题 How to get the DiscussionHistory of a MUC room from MultiUserChat ? I am able to create MultiUserChat instance and room by using aSmack library, now I want to show all the previous conversations that happened in the room. Anybody experienced in the same please help me. I Google searched a lot about this but still I did't get any proper documentation / explanation on this. 回答1: DiscussionHistory history = new DiscussionHistory(); history.setSince(date); muc.join(nickname, null, history,

How to authenticate to Google Talk with AccountManager's authentication token using Smack API?

蓝咒 提交于 2019-12-20 21:44:52
问题 This question is similar to: Authenticate to Google Talk (XMPP, Smack) using an authToken I have android.accounts.AccountManager class and its methods to get authentication token for Google account: public AccountManagerFuture<Bundle> getAuthToken (Account account, String authTokenType, Bundle options, Activity activity, AccountManagerCallback<Bundle> callback, Handler handler) I know how to prepare authentication XML: jidAndToken ="\0" + UTF8(YOURUSERNAME@gmail.com) + "\0" + Auth (where "\0"

How to authenticate to Google Talk with AccountManager's authentication token using Smack API?

﹥>﹥吖頭↗ 提交于 2019-12-20 21:44:05
问题 This question is similar to: Authenticate to Google Talk (XMPP, Smack) using an authToken I have android.accounts.AccountManager class and its methods to get authentication token for Google account: public AccountManagerFuture<Bundle> getAuthToken (Account account, String authTokenType, Bundle options, Activity activity, AccountManagerCallback<Bundle> callback, Handler handler) I know how to prepare authentication XML: jidAndToken ="\0" + UTF8(YOURUSERNAME@gmail.com) + "\0" + Auth (where "\0"