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
4
votes
1 answer

Strophe.js - How to get a group of rosters with its members?

When using this Strophe command: var iq = $iq({type: 'get'}).c('query', {xmlns: 'jabber:iq:roster'}); connection.sendIQ(iq) I get this as the success callback:
Laura
  • 265
  • 2
  • 11
4
votes
1 answer

how to send \n neutral character in strophe.js

To implement keep alive feature for Ejabberd it recommends to send a \n character to server. I'm using strophe.js as the client library. How do I send neutral character from strophe?
gibsosmart
  • 137
  • 1
  • 8
4
votes
1 answer

How to add onmessage handler for strophe muc plugin

How to add on-message handler for strophe MUC plugin. Currently i added callback function for join action. Gab.connection.muc.join(room_name+"@muc.162.242.222.249", login_id, function(message){
user1752065
  • 179
  • 9
4
votes
2 answers

How to import strophe using requirejs?

I'm trying to use strophe.js with relay-starter-kit. I checked out relay-starter-kit, added "strophe": "^1.2.2" to package.json and ran npm install. I can't find how to import strophe without getting errors. If I just try import Strophe from…
jbrown
  • 7,518
  • 16
  • 69
  • 117
4
votes
1 answer

404 Invalid SID value in Strophe while using attach()

I attempted to find an answer to my question with the search engine but i was unable to. I'm using strophe.muc.js in my backboen project in order to make it real time website. And now i am trying to attach a Session, so that if a page get reloaded,…
Nothing
  • 2,644
  • 11
  • 64
  • 115
4
votes
1 answer

Integrating ejabberd in to existing nodejs app using Bosch and Strophe

I'm trying to integrate chat functionality and features in to existing node.js app (Expressjs) that is consumed by the native mobile apps (iOS and Android). One way is to use socket.io and provide chat functionality but ejabberd is obviously with…
jjello
  • 93
  • 1
  • 7
4
votes
1 answer

how to retrieve group list a user is a member or admin in xmpp?

I am working on the chat application. I want to implement the group chat functionality in the web client. I have done things till group create and basic configuration and joining the group. I want to know if there is any extension developed Or any…
praveenraj
  • 774
  • 1
  • 9
  • 20
4
votes
2 answers

Session resume problem with Strophe attach and Ejabberd

I'm having a lot of difficulty getting strophe's 'attach()' function working. I am working on a social network where users will be surfing pages and at the same time keep their chat connection on. I don't want to reconnect/reauthorize on every page…
Adil
  • 2,092
  • 3
  • 25
  • 35
4
votes
0 answers

How to remove self from memberlist in XMPP

In Openfire using XMPP, when I create a persistent room, users can add if they are invited. When I send an invite to a user for room joining it will join using:
Mohsin Patel
  • 226
  • 1
  • 15
4
votes
3 answers

XMPP: AngularJs + Strophe.js

I have a basic XMPP client working on strophe.js. On login I create handlers such as connect = new Strophe.Connection('http://localhost/http-bind'); ... ... connect.addHandler(on_message, null, "message", "chat"); …
luiquao
  • 1,094
  • 4
  • 21
  • 46
4
votes
2 answers

Strophe.js MUC: creating a room and joining more than one room

I'm creating a chat website and I'm using Strophe.js and the Strophe.muc.js plugin. The single chat functionalities work fine, but I also wan't to implement a group chat function where users can create rooms and invite other users to their room.…
Hampel Előd
  • 405
  • 2
  • 8
  • 19
4
votes
0 answers

Strophe.attach Invalid SID error

i am trying to attach a Session, so that if a page get reloaded, no new connection get created: // On Document Ready, check if jid.sid and rid cookies are set: If yes: conn.attach. Else connect: $(document).ready(function() { var cookie_data =…
JuJu
  • 307
  • 1
  • 3
  • 18
4
votes
6 answers

enable http-bind on openfire

I am trying to enable BOSH connection over Openfire so that i can create a XMPP client over a web. curretly i am testing it with the strophe.js. the problem is when i try to fire following url in a browser i am getting…
Hunt
  • 8,215
  • 28
  • 116
  • 256
4
votes
2 answers

XEP-0077 In-band registration with Strophe.js and openfire usage

I'm trying to register a new user on openfire server with the strophe plugin but it doesn't connect for the registration. The description here https://github.com/metajack/strophejs-plugins/tree/master/register doesn't bring me any further :( Do I…
user1054134
  • 443
  • 1
  • 4
  • 21
3
votes
1 answer

Do I stay in the MUC when pause() and attach()?

I have a client written using Strophe that is loaded on every page on my website. To minimize latency I save the rid, the jid and the sid at each page change so that I can use Strophe's attach() method. However, I am unsure of if the pausing and…
1 2
3
31 32