xmpp

Javascript based XMPP chatclient using strophe js - Examples and tutorials? [closed]

夙愿已清 提交于 2020-01-01 01:44: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 9 months ago . I want to make a simple javascript-based XMPP client. I stumbled upon 'strophe js', which should make my life easier when it comes to XMPP but I find the documentation a bit.. uncomplete. It has an example on how to connect/disconnect but that's pretty much it. I need to get a list of contacts, send and receive

Developing a mobile chat room, backend use XMPP or WebSocket?

我们两清 提交于 2019-12-31 05:07:34
问题 Some requirements for a mobile chat room: Should be able to work seamlessly with client's frequent connect/disconnect due to the mobile network Bandwidth saving (less overhead) I don't have experience in XMPP, I only have worked with Node.JS server and it is easy to setup and hack the server with JavaScript. But seems XMPP is the defacto standard for chat room, e.g. WhatsApp use them., anyone can share your experience in these two technologies? 回答1: You are kind of asking how can I get to my

how to use smack 4.1 for how to send info query packet to xmpp server?

萝らか妹 提交于 2019-12-31 03:36:28
问题 how to send info query packet to xmpp server, in other words how to send "..." to server to query some information? <iq type='set' id='123'> <push xmlns='p1:push'> <keepalive max="30"/> <session duration="60"/> <body send="all" groupchat="true" from="jid"/> <status type="xa">Text Message when in push mode</status> <offline>false</offline> <notification> <type>applepush</type> <id>DeviceToken</id> </notification> <appid>application1</appid> </push> </iq> 回答1: The iq headers and the namespace

XMPPFramework - How to Create a MultiUserChat Rooms?

我与影子孤独终老i 提交于 2019-12-30 12:52:08
问题 How can I Achieve GroupChat in iPhone using XMPPFramework.I tried fallowing code but room is not created.How can I know whether room is created or not.XMPPRoomDelegate are not called.When Stream disconnected, handleDidLeaveRoom method called.Can any one help me.thanks inadvance #define XMPP_HOSTNAME_2 @"chat.someservername.com" #define XMPP_JID @"venkat@chat.someservername.com" #define XMPP_PASSWORD @"venkat" #define ROOM_JID @"venkat_muc@conference.chat.someservername.com/iMac" - (void

XMPPFramework TLS/SSL connection with Openfire

不羁岁月 提交于 2019-12-30 11:31:33
问题 I'm trying to set up a secure connection TLS/SSL beetween my client apps and an OPENFIRE server. I'm using the XMPPFramework for iOS, how can i do that? I have already tried to change the openfire security settings to made required a secured connection, but in this way, my app won't connect to server. I think that i have to set something in the xmppframework but i can't find any instruction. My connection code : - (void)setupStream { NSAssert(xmppStream == nil, @"Method setupStream invoked

SOCKS5 connection times out (GCDAsyncSocket). (OpenFire, XEP-0065 and iOS XMPPFramework)

落花浮王杯 提交于 2019-12-30 05:22:10
问题 Problem : I am attempting a TURNSocket (XEP-0065 - SOCKS5) using the iOS XMPPFramework and an OpenFire Server. I want to be able to send and receive files. However, in most scenarios, the receiver returns no response. I currently suspect the problem is to do with the OpenFire proxy server, which times out! This is set up on the local network, and I have edited the hosts file to point to it. Note : The base of my code is from the following tutorial : http://mobile.tutsplus.com/tutorials/iphone

XMPP “stream:error (conflict)” on login with (a)Smack

自闭症网瘾萝莉.ら 提交于 2019-12-30 04:24:05
问题 Currently i am working with xmpp/jabber chat for android.i just tried with Openfire and try to connect my jabber account.connection was successful.but i am not able to send any message.it shows some conflict error.please check the error log.give me a solution for this. Initializing connection to server eworks port 5222 Connected: true Creating entry for buddy 'testuser2' with name testuser2 Sending mesage 'Hello mate' to user testuser2@eworks Buddy:testuser2 - Status:null stream:error

How to retrieve chat history from open fire in android

北城余情 提交于 2019-12-30 03:33:06
问题 I have a chat app in which I want to retrieve chat history between two users, I have a stanza for retrieving chat messages and that is... <iq type='get' id='pk1'> <list xmlns='urn:xmpp:archive' with='shrey27@sys1-pc'> <set xmlns='http://jabber.org/protocol/rsm'> <max>30</max> </set> </list> </iq> now, my problem is how can I fire this stanza to the server so that I can get the response.I have installed the message archiving plugin and messages are getting stored perfectly.any suggestions

Ajax jabber/XMPP client recommendations (real experience only please) ! [closed]

我与影子孤独终老i 提交于 2019-12-29 16:24:05
问题 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 . i'm setting up a chat system for my niche social site and have decided on ejabberd for the server side, but i cannot find any decent web-based ajax clients. most seem to be abandoned years ago or simply do not work. i've looked at every single one here : http://xmpp.org/xmpp-software/clients/ Is anyone running a

how to add roster with subscription mode “both”

拥有回忆 提交于 2019-12-29 13:17:23
问题 i'm using smack 3.1.0, and when i add a roster,i can't get subscription "both". who can help me? below is my code: Roster.setDefaultSubscriptionMode(Roster.SubscriptionMode.accept_all); Roster roster = connection.getRoster(); roster.createEntry("buddy@test.com","me",null) after the code execution, i observed in openfire the subscription is "to" 回答1: Rewriting @mschonaker's answer to be a little more clear. Both users need to subscribe to each other and accept the subscription request they