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
12
votes
4 answers

XMPP multiple sessions of the same user issue

I've implemented a chrome extension which allow to use XMPP chat over BOSH connection with punjab server running on a remote server. It is implemented using javascript Strophe library. The issue I'm running into is when I have multiple sessions of…
vian
  • 811
  • 2
  • 12
  • 27
12
votes
2 answers

How to call jquery trigger from gwt?

public static native void doConnect() /*-{ $wnd.jQuery(document).trigger('connect', { jid: 'sss', password: 'sss' } ); }-*/; i tried…
cometta
  • 35,071
  • 77
  • 215
  • 324
11
votes
4 answers

Realtime server push with Socket IO (or Strophe.js), XMPP and Django

I have a couple of Android and iOS native mobile application that I wrote which connect directly to an XMPP server that I host. They push and pull realtime data through XMPP. I also use some of the XMPP XEP extensions. For other operations, I have a…
rburhum
  • 1,611
  • 2
  • 17
  • 33
10
votes
1 answer

Authorization request (add to roster) using strophe.js

I use strophe.js library to send and receive XMPP messages in browser. It works fine, but only for users I already have in my contact list - roster. I need to add someone (whose address I know) to my roster. How can I achieve this using strophe.js?…
Pavel S.
  • 11,892
  • 18
  • 75
  • 113
10
votes
2 answers

XMPP web chat: how to resolve multiple tabs/windows?

We have a site and we developed a chat system for it using strophe.js library and ejabberd XMPP server. We use session attachment that was initiated with PHP (using an in-house library). What we do is get the RID and SID from the PHP script, then…
putolaruan
  • 2,084
  • 2
  • 21
  • 32
10
votes
4 answers

What is strophe and how to use it with JQuery?

Can somebody explain what strophe is? I believe it has something to do with XMPP? How can I incorporate it into a site using Jquery?
chris
  • 20,791
  • 29
  • 77
  • 90
8
votes
1 answer

BOSH module not started: Ejabberd / Strophe setup issue

Am trying to setup Strophe with Ejabberd on Ubuntu 12 (Linode latest version) using the internal Ejabberd webserver to serve the chat. The test urls (http-bind and admin) both work. JWChat works. Strophe throws an error: In Strophe: RECV:
SamGoody
  • 13,758
  • 9
  • 81
  • 91
8
votes
2 answers

Handling presence in Strophe.js-based chat application

Is there any existing solution which provides the presence handling for chat app based on Strophe.js? I have simple chat application based on Strophe.js. I'd like to show only the users who are online and dynamicaly alter the list. I was wondering…
Pavel S.
  • 11,892
  • 18
  • 75
  • 113
7
votes
1 answer

Strophe character encoding issue

I am working on an XMPP client and having an issue with messages being sent/received by Strophe (javascript version). The issue is messages that contain "special" characters. For instance, if I send: I'm here. An external client (i.e. iChat) will…
jopke
  • 1,186
  • 6
  • 18
7
votes
3 answers

architecture to Facebook-chat from a webpage, (XMPP? Strophe? Punjab?)

I would like to implement FB-chat inside a webpage. I looked around in Facebook API, i found out that chat is allowed only using XMPP. First I tried to connect to FB-chat using Pidgin and it worked fine. My conclusion was that FB-chat server is…
sabah
  • 113
  • 2
  • 8
7
votes
1 answer

ejabberd connection failed with webclient(websocket.js)

I have installed ejabberd with Ubunut OS. Configured ejabberd.yml as: port: 5280 ip: "::" module: ejabberd_http request_handlers: "/ws": ejabberd_http_ws "/bosh": mod_bosh "/a/b/": mod_foo "/api": mod_http_api …
Manoj Kumar
  • 587
  • 2
  • 9
  • 20
7
votes
0 answers

strophe.js http-bind error 504

The following request is getting timed out frequently: Console log shows: No…
6
votes
4 answers

Why there is no error thrown with Strophe.js?

Example code: var connection = null; function onConnect(status) { im_a_big_error.log('wtf'); // Why it doesn't throw me an error here ?? …
Unitech
  • 5,781
  • 5
  • 40
  • 47
6
votes
2 answers

Disconnect Strophe Connection on Page Unload

I've written a web-based MUC client using strophe.js and jQuery and I'm trying to send an unavailable presence to the room and disconnect the user in the jquery unload event for the window. If a user navigates away or closes the browser tab,…
user645313
  • 83
  • 2
  • 5
6
votes
0 answers

xmpp message not send to selected friend

I am working in mean stack application and now I required to make chatting module using the XMPP protocol. I am new with XMPP, I have used "node-xmpp-server" and "node-xmpp-client" in node js and "Strophe.js" in angular js. My code is as…
laxman
  • 1,338
  • 2
  • 10
  • 27
1
2 3
31 32