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
0
votes
2 answers

How would I keep a chat session open with strophe while still allowing users to navigate to other pages?

I'm sorry if that question seems vague but here's what I have. On the side of my webpage I have a chat script that performs the following functions each and every time the page is called up. Connects to my BOSH server Pulls data according to who is…
TomMElack
  • 23
  • 6
0
votes
1 answer

Backbone and Strophe muc plugin: Handle incoming events

I get the last messages sent to the room which will be also displayed in the View but if a new message comes in the Strophe event handler does not fire although I see incoming message stanza over the wire (xmlInput on the connection). What could be…
genericatz
  • 433
  • 5
  • 16
0
votes
1 answer

Punjab does not consistently acknowledge that it is getting messages from strophe

First, thank you in advance for taking a look at this problem with me. I'm currently using strophe.js to connect to Punjab over a BOSH connection, which ultimately forwards the messages to Openfire. I'm prebinding on the server and attaching to the…
MarnBeast
  • 403
  • 4
  • 10
0
votes
1 answer

Using strophe attach() instead of connect() doesn't work unless I trigger my connected callback twice

I'm using prosody XMPP server and trying out chapter 3 example from "Professional XMPP Programming with JavaScript and jQuery". It is basically ping - pong example and it works fine. Problem is when I try to modify this example to store jid, sid and…
Marko
  • 195
  • 11
0
votes
1 answer

Openfire: create users with SASL Anonymous in openfire server

is it possible to create new users (In-band registration) using anonymous user using Strophe.js like in the example here: http://groups.google.com/group/strophe/browse_thread/thread/a0e15ae226b91a3a?fwc=1 . I managed to register new users with an…
user1054134
  • 443
  • 1
  • 4
  • 21
0
votes
2 answers

Sending XHTML messages with Strophe in a muc room

I'm trying to send a html message using Strophe to a muc room. I also tried to send the following xml over the XML console in Psi but it doesn't work, only Hello World is displayed. Is there something wrong with the message stanza?
user1054134
  • 443
  • 1
  • 4
  • 21
0
votes
1 answer

Get list of users from OpenFire server

I'm currently trying to make a Strophe based javascript script to get the list of available users in an OpenFire server (live refreshing needed). I don't care if I have to create a group, room or whatever it's called (anyway, the server will be…
Gonzalo
  • 3,674
  • 2
  • 26
  • 28
0
votes
1 answer

Tornado based XMPP server and client

We are working on a chatting based website. After doing an extensive literature review we shorted to use Tornado as our web server, socket.io as client side javascript. We are now in a process to scale up our application to serve approximately…
w2lame
  • 2,774
  • 6
  • 35
  • 48
-1
votes
1 answer

What is the order of addHandler parameters in Strophie Javascript?

What is the order of addHandler parameters in strophe.while defining the handler ,why those parameters are ommitted?
Ali Akbar
  • 1
  • 1
-1
votes
1 answer

Need guidance to start working on Openfire through strophe

My objective is to get communication started on openfire through strophe. But have a few questions like: What is the language that strophe will be written in? How and where are the connections written? Just some basic guidance or a good link to a…
Mohsin Sheikh Khalid
  • 3,914
  • 5
  • 20
  • 22
-1
votes
1 answer

Persistent Group using XMPP

I am using XMPP and MUC for creating a group and it works fine till the user is online. The user leaves the group as soon as he goes offline. I want a user to stay in the room when he is offline and receive the unseen messages when he comes back.…
Anishnirmal
  • 540
  • 5
  • 11
-1
votes
1 answer

Javascript combine string that has the same name,how?Strophe

I am using strophe mam with ejabberd server and i am trying to combine the messages it returns and saves it in a sessionstorage or string. The situation is as such, a function returns me multiple strings that has the same name,for example: var…
John
  • 983
  • 1
  • 13
  • 31
-1
votes
1 answer

Error Creating Chat Room StropheJS with ejabberd

I am trying to create a chat room using StropheJS My Code: var presence = $pres({ to: "testRoom@conference@localhost/yashwanth, from: Strophe.getBareJidFromJid(connection.jid) }); Groupie.connection.send( presence.tree()); …
Yashwanth Babu
  • 919
  • 9
  • 30
-1
votes
1 answer

How can i add members in openfire xmpp database using strophe

Example: Send presence and message to xmpp openfire using strophe.js. But not insert to muc member into database. example code below var pres = $pres({to: 'coven@chat.shakespeare.lit/ghywi7'}) .c("x", { xmlns:…
Durai
  • 1
  • 1
-1
votes
1 answer

Get online users list xmpp with strophe

I successfully connected to openfire server using strophe librabry. I want a javascript function that returns all users from a conference room. An another question is: how can i set/get current user's status? My current…
Catalin
  • 752
  • 1
  • 16
  • 32
1 2 3
31
32