xmpp

Quickblox one to one chat connection lost

瘦欲@ 提交于 2019-12-24 04:13:31
问题 I have developed chat application using Quickblox SDK version 0.8.1. Sometimes app loses chat connection to the server so can not send message or receive message even in same chat page. I do have to reload every time this happens even sometimes it does not re-connect. So can any body help me with this. 回答1: To reconnect to Chat please do: iOS way - (void)chatDidFailWithError:(int)code { // reconnect [[QBChat instance] loginWithUser:[LocalStorageController shared].qbUser]; } Android way (SDK 1

Join XMPP MUC with one JID simultaneously from different resources with openfire

瘦欲@ 提交于 2019-12-24 03:40:29
问题 I need to join in xmpp chat room with one jid but from different resources at same time. It is not works. Server sends chat messages only to last joined device. How do I configure jabber server (Open Fire) to allows room keep connection with same JID different resources? 回答1: Openfire does not support multiple resources from the same JID in one MUC. See OF-103 来源: https://stackoverflow.com/questions/12478871/join-xmpp-muc-with-one-jid-simultaneously-from-different-resources-with-openfire

How does whatsapp Keeps its eJabberd/XMPP server connected when the app is Closed?

久未见 提交于 2019-12-24 03:14:07
问题 How does Whatsapp keep its connection to the socket when the app is totally closed off. Does Whatsapp use GCM or APNS push to trigger the App to sync with the Ejabberd?? Some people say it always stay connected(I am pretty new to this) but i tested i rebooted my phone, clear ram, AppManager forced close Whatsapp, it still receives the messages. So wondering can you make code runs on the OS level to keep the connections when everythings closed? Or it just use the GCM for triggers? Isnt the

gzipstream for forward only stream over sockets

独自空忆成欢 提交于 2019-12-24 02:57:14
问题 I am developing an application on windows phone 7.I need to compress/uncompress my data for sending it over tcp sockets. But I have not been able to find any gzip compressor for forward only stream over tcp sockets. please help. 回答1: I created a stripped down version of DotNetZip for this purpose, called DotNetZipLiteWP7. It's available via git here: https://bitbucket.org/jnewc/dotnetziplitewp7 (Also, I prefer DotNetZip to SharpZipLib as the license is more straight-forward for use in

Creating new user with Smack 4.2.0-beta1 on ejabberd throws XMPP Exception: forbidden - auth

ぐ巨炮叔叔 提交于 2019-12-24 02:44:32
问题 I am doing Chat application with smack . I am new for this technology. I have created some manual users from Ejabberd server. Using those users I have done one to one chat and group chat. But I tried to create new user from android code But I am getting this below error XMPPError: forbidden - auth 08-02 08:23:36.273 31097-31097/com.agarangroup.hello W/System.err: at org.jivesoftware.smack.PacketCollector.nextResultOrThrow(PacketCollector.java:232) 08-02 08:23:36.273 31097-31097/com

Python xmpp jabber client in tornado web application

一个人想着一个人 提交于 2019-12-24 02:42:44
问题 I am desktop programmer but I want to learn something about web services. I decided for python. I am trying understand how web applications works. I know how to create basic tornado website (request - response) and working jabber client, but I don't know how to mix them. Can I use any python components in web services? Does they must have specific structure ( sync or async )? Because I'm stuck in loop handlers: If tornado start web serwer by command: app = Application() app.listen(options

How to know Typing Status in XMPP openfire using Smack

北城以北 提交于 2019-12-24 00:34:26
问题 I am developing chat application by using Openfire XMPP server. I can text chat between two user. But i want to know Typing status when some one is typing message. So i created a class :- public class typingStatus implements ChatStateListener { @Override public void processMessage(Chat arg0, Message arg1) { // TODO Auto-generated method stub } @Override public void stateChanged(Chat arg0, ChatState arg1) { // TODO Auto-generated method stub System.out.println(arg0.getParticipant() + " is " +

Not getting unavailable presence of User A when User B is also unavailable

て烟熏妆下的殇ゞ 提交于 2019-12-23 23:28:06
问题 I am working on a chat application. I am adding functionality to get unavailable status of the user. Following the situation where i am not getting the unavailable presence of the user There are 2 users User A and user B and both are available First User A goes unavailable and User b gets unavailable presence of User A , so its working fine, Then user B goes unavailable and then User A become available here problems occur the User A does not receive offline Unavailable presence of User B. But

Using Ruby, how can I confirm that an XML snippit is valid?

爱⌒轻易说出口 提交于 2019-12-23 22:40:46
问题 As some of you make know, I'm working on XMPP (Jabber) integration for the StackOverflow chat system, as an XMPP component written in Ruby using the xmpp4r package. I'm struggling with one issue (well, many issues, but one issue at the moment :-) I am taking the JSON feed from the chat and extracting the HTML for the messages. I am using The Ruby TidyHTML bindings to convert the HTML from the JSON fed to XHTML, so that I can send it as an XMPP message -- since XMPP messages are just XML,

How can I add -fobjc-arc for a lot files one time

感情迁移 提交于 2019-12-23 21:41:00
问题 I want to add xmppframework to my project, how can I add -fobjc-arc to all xmpp files one time? 回答1: This isn't perfect, but is usually good enough: Select the project at the top left of the project window. Select the target. Open the build phases pane. Select "Compile Sources" Type in "xmpp" into the filter area Select the files you want. Hit Enter and then type -fobjc_arc in the dialog. 回答2: Simple, in your compiler sources select the first item that requires the flag, scroll down and click