Questions tagged [strophe]

Strophe is a collection of libraries for speaking the XMPP protocol.

While most XMPP libraries and implementations are focused on chat-based applications, Strophe takes a grander view. It has been used to implement real-time games, notification systems, search engines, as well as traditional instant messaging. The implementations are production ready, well documented, easy to use, and easy to extend.

There are currently two members of the Strophe family of libraries.

Strophe.js

Strophe.js is a JavaScript implementation targeting browser-based clients. It uses BOSH, a binding of XMPP to HTTP using long polling and WebSockets, a full-duplex single socket connection to a server. Strophe.js makes creating real-time web applications easy.

libstrophe

libstrophe is a C library for XMPP clients and components. It has very minimal dependencies and was designed with both POSIX and Windows systems in mind.

469 questions
6
votes
1 answer

Strophe js in Titanium Appcelerator?

I want to create a chat application in Titanium appcelerator using Strophe.js library. I have gone through strophe js libraries and their documents as well. I believe we can use strophe.js to build xmpp based chat app in web. Thanks in advance, Can…
Prabhu
  • 840
  • 11
  • 28
6
votes
2 answers

How do we store chat conversations on MySQL database? XMPP Openfire

I am building a web chat application. I want to store the messages or conversations between two parties after every press of "Enter" button. I am using Openfire Server, and MySQL database. I don't see any tables from the database that stores the…
leeshin
  • 1,043
  • 5
  • 15
  • 30
6
votes
1 answer

Strophe gets invalid SID

I'm building a web based client with strophe and jquery and I'm using openfire as server. Almost everything its working, I can get the roster list, send and receive messages, but when I'm trying to change my presence from avaliable to xa or dnd or…
Biguá
  • 183
  • 3
  • 13
5
votes
2 answers

querying openfire message archive

I'm playing around with strophe and Openfire 3.7.1 (with user-service and monitoring plugin). I've read in http://xmpp.org/extensions/xep-0136.html (7.2 Retrieving a Collection) that I could retrieve archived messages. I've installed the…
stevenson lee
  • 111
  • 2
  • 9
5
votes
3 answers

How to re-request room roster and history from a muc in ejabberd

When a user joins an ejabberd MUC, the server will send a full room roster and chat history to the user. In my web based client I need to persist the room over page reloads. My problem is that I loose al the initial information when the page is…
Ollie Edwards
  • 14,042
  • 7
  • 28
  • 36
5
votes
2 answers

custom XMPP messages with Strophe.js

How can I send custom messages with XMPP using the Strophe JS library? I know that using $msg( ... ); I can create a chat message element and connection.send(m); send it through XMPP connection. I need a way to send messages not for chat but for…
vp-platform
  • 601
  • 6
  • 17
5
votes
2 answers

Is it right that Strophe.addHandler reads only first node from response?

I'm starting to learn strophe library usage and when i use addHandler to parse response it seems to read only first node of xml response so when i receive a xml like that :
markcial
  • 9,041
  • 4
  • 31
  • 41
5
votes
2 answers

What are XMPP extensions (XEPs), and how do I use them?

I am trying to make a chat application using Openfire and Strophe.js. I always read about XEPs, etc. and it is always redirecting me to XMPP Extensions and I don't even know how to use these extensions. This may seems like a dumb question but I can…
leeshin
  • 1,043
  • 5
  • 15
  • 30
5
votes
2 answers

What do I need for integrating XMPP into Rails?

Here's what I have so far. XMPP Server - Ejabberd or Vine XMPP Library in Rails - Blather XMPP Library on Client - Strophe.js Is this what I need to integrate chat into my rails app? EDIT: from the creator of Vine. "It's probably safer to use…
wanab33ninja
  • 51
  • 1
  • 3
5
votes
1 answer

XMPP strophe, get presence roster

How can I get a the online presence of my "friends" using Strophe lib for JS? Not the roster, even the single presence ( or have I to do 1 req/user in roster? ) Usually I'm notified only at 'presence change' of every resource, but I want to know if…
M4rk
  • 2,172
  • 5
  • 36
  • 70
5
votes
1 answer

Strophe.Connection.addHandler no works if call Strophe.Connection.sendIQ

I have a question about the Strophe.Connection.addHandler and Strophe.Connection.sendIQ. The code below can works: Strophe.Connection.addHandler(context.onMessage, null, 'message') onMessage = function (msgXML){ var to =…
Jian Huang
  • 53
  • 1
  • 3
4
votes
2 answers

Strophe MUC example

Does anyone have an example code for a join,changenick, ...etc functions calls in Strophe muc extension ? I tried to do this myself not sure how do i call the extensions functions, and add the plugin to the js, is it adding
mahen3d
  • 7,047
  • 13
  • 51
  • 103
4
votes
2 answers

how to create new group in xmpp server

Am using Strophe.js library for communication between my application with XMPP(Openfire) server. I want add user with group, How can i create new group? How can i mention group name with add buddy query? This is my code for adding new user var…
Rajamohan Sugumaran
  • 4,439
  • 4
  • 22
  • 19
4
votes
1 answer

Strophe sending double request on page unload

I have written an XMPP client with jQuery+Strophe. It all works well (1-on-1, presence, MUC, etc) and is contained within a jQuery-plugin. However, when the page unloads, it sends 2 final requests with the same rid. It only recently became a problem…
Mike
  • 2,567
  • 3
  • 23
  • 35
4
votes
3 answers

XMPP file transfer using Strophe library

Can anyone let me know the implementation of file transfer in XMPP using strophe library
HoneySam
  • 147
  • 3
  • 13
1
2
3
31 32