Questions tagged [xmpp]

XMPP (Extensible Messaging and Presence Protocol) is an open, standard protocol for near-real-time exchange of XML-structured data.

XMPP (Extensible Messaging and Presence Protocol) is an open, standard protocol for near-real-time exchange of XML-structured data. The protocol is commonly used in instant messaging (IM) applications, but can be used to exchange any kind of data. It can also be leveraged for multi-user chat, collaboration, voice and video, message-oriented middleware, and many other applications.

XMPP works by initiating a bidirectional XML stream between two entities. The stream is used to transport XMPP stanzas, which are small, well-defined blocks of XML.

An overview of XMPP protocol is available at https://xmpp.org/about/technology-overview.html

There are various XMPP servers available to use. For more comprehensive lists of server, client implementations as well as XMPP libraries, visit xmpp.org.

5885 questions
31
votes
4 answers

JSON Schema compared with XML Schema and their future

I was looking for JSON schema standards and their corresponding php implementations. Expecting some open source out there and I was surprised, to find only one php implementation. I was about using this technology (JSON) and the schema lib to…
Alain
  • 1,330
  • 2
  • 17
  • 35
31
votes
3 answers

Why does my wss:// (WebSockets over SSL/TLS) connection immediately disconnect without giving any errors?

Posting this for anybody else running across the same problem. I was working on a browser client that used stanza.io to connect to an XMPP server (Prosody, in my case). I was using a wss:// connection by default. At some point during development, my…
Sven Slootweg
  • 3,517
  • 3
  • 19
  • 29
27
votes
5 answers

Is it ok to use HTTP REST API for Chat application?

We are building a chat application on Android. We are thinking of using HTTP REST API to send outbound messages. Wanted to know if it's a good approach or has any downsides compared to using WebSockets or XMPP (which seems to be more of a defacto…
Madhur Ahuja
  • 20,893
  • 12
  • 65
  • 110
27
votes
6 answers

How to keep a XMPP connection stable on Android with (a)smack?

I use asmack-android-7-beem library for Android. I have a background service running, such as my app stays alive. But sooner or later XMPP connection dies without any notice. The server says that the client is still online but no packets are sent or…
Max
  • 271
  • 1
  • 3
  • 3
26
votes
3 answers

No response from remote client: error during file transfer using asmack

I have a problem while receiving file using asmack. Here I paste error and packets that I sent and receive log // error 04-21 19:21:05.109: WARN/System.err(7401): Error in execution: 04-21 19:21:05.109: WARN/System.err(7401): -- caused by:…
Kutbi
  • 1,008
  • 2
  • 16
  • 30
25
votes
1 answer

How to use Smack 4.1 in Android?

I was looking at this answer Using your own XMPP server for android chat app (Smack API) to learn about the available XMPP APIs. Smack seems like a good choice. Prior to Smack 4.1 one had to rely on aSmack. Starting with 4.1, Smack will run…
An SO User
  • 23,378
  • 30
  • 119
  • 197
24
votes
2 answers

Best XMPP client library for Node.js

What are your experiences with Node.js XMPP client libraries? What do you recommend?
Denti
  • 384
  • 1
  • 3
  • 11
24
votes
4 answers

How to receive Incoming XMPP Messages using Smack?

I read some examples and tested them but all of them need to start a chat with someone first to receive Incoming Messages... I want to retrieve this Incoming Messages without need to talk first to the jid anyone can give an example ?
Winter
  • 1,816
  • 4
  • 30
  • 41
24
votes
6 answers

XMPP client using Smack 4.1 giving NullPointerException during login

I am trying to use Smack 4.1.0-rc3 for implementing a java xmpp client which connects to a ejabberd xmpp server. I am using the following code for connecting to the server. XMPPTCPConnectionConfiguration connConfig = …
Deepu
  • 291
  • 2
  • 3
24
votes
4 answers

Android P2P Multiplayer game (with a) XMPP/Google talk b) JXTA peerdroid c) other way)

I am an android developer and I made some board games. Now i want to make some of my board games multiplayer. I don't want to create and host my own web service, so i thought about P2P. The first thing i found was the XMPP protocol, however it's not…
Kristof
  • 557
  • 6
  • 14
24
votes
6 answers

ejabberd online status when user loses connection

I have ejabberd setup to be the xmpp server between mobile apps, ie. custom iPhone and Android app. But I've seemingly run into a limitation of the way ejabberd handles online status's. Scenario: User A is messaging User B via their mobiles. User B…
Johan Vorster
  • 443
  • 5
  • 16
24
votes
3 answers

differences between smack, tinder and whack

Can anyone tell me what the differences are between smack, tinder and whack? Are tinder and whack slim-down versions of smack? Do the 3 libraries serve different purposes?
cometta
  • 32,613
  • 72
  • 206
  • 316
23
votes
3 answers

XMPP server : ejabberd vs openfire vs prosody

I'm trying to figure out how XMPP works (total beginner in protocols in general) and I want to set up a server. So far, I saw 3 main challengers : ejabberd openfire prosody I checked on some website and on the wikipedia, but I cannot see pros and…
Dan Chaltiel
  • 5,597
  • 4
  • 36
  • 62
22
votes
4 answers

Node.js with Socket.io module vs XMPP - advantages and disadvantages

I have a Node.js with Socket.io chat application and an XMPP Openfire chat system. I'm looking forward to replacing XMPP with Node.js and Socket.io. However, there is talk that, Node.js with Socket.io would have a problem, if the server crashes and…
user739217
  • 221
  • 1
  • 2
  • 4
22
votes
4 answers

How to save Lync conversation history when Corp has blocked this feature?

I am using Lync 2010 (4.0.7577.4356), which we use on my small development team for IM'ing. Lots of technical Q&A are handled through this program and lots of other items that need to be documented. Unfortunately, our parent company has a policy…
Justin
  • 369
  • 1
  • 6
  • 14