Questions tagged [strophe.js]

Strophe.js is a JavaScript library for speaking XMPP via BOSH (XEP 124 and 206) or Websocket protocol (as per RFC 7395).

Its primary purpose is to enable web-based, real-time XMPP applications that run in any web browser.

It supports extension via a plugin system. There is a collection of Strophe.js plugins created and maintained by the community.


Useful links

54 questions
1
vote
0 answers

Strophe disconnecting from Ejabbered with Status 10

In my ionic 4 application, I am using strophe.js to connect to Ejabbered server. In the application after status connected I am able to see chats successfully but after sometime it gets disconnected on its own and chats disappear without doing any…
1
vote
1 answer

How to call strophejs-plugin-chatstates from service?

I have installed strophejs-plugin-chatstates to send composing state of user in one-to-one chat. There is a connection present in my code with local strophe this.connection = new Strophe.Connection(`${EJABBERD_URL}/bosh`, { mechanisms: []…
Mayuri More
  • 216
  • 2
  • 12
1
vote
0 answers

How to fix too many connection request call to ejabber server?

Facing too many connection calls while trying to connect my react application with Ejabberd server. I am using strophe library for the connection between React end to Ejabberd server Due to this problem, Ejabber server blocked some amount of time…
user10269224
  • 73
  • 10
1
vote
0 answers

How to enable Stream Management using Strophe.js?

According to Guidelines of https://github.com/strophe/strophejs-plugin-stream-management, I have included the statement to enable stream management as follows: var url = BOSH_SERVICE; connection = new Strophe.Connection(url); connection.rawInput =…
Saumay Paul
  • 405
  • 1
  • 7
  • 21
1
vote
1 answer

i cant do send a announce whit strophe.js, what are modules it is necessary?

i cant do send a announce whit strophe from ejabberd sever 18.03. It is possible, how? i cant use this code ? https://github.com/bbc/Strophejs-PubSub-Demo/blob/master/js/publisher.js
Devid
  • 11
  • 6
1
vote
1 answer

strophe js receives a single message using with angular 4

I am using Strophe.js to connect with XMPP server in angular4. connection.addHandler() received a single message. I add this listener after successful connection. connection.addHandler(this.receiveMessage, null, 'message'); Please tell what I…
Pooja Pradhan
  • 83
  • 1
  • 7
1
vote
1 answer

Anyone know how to change username and password with strophe.js?

I am building an XMPP chat app, I used strophe.js but I have no idea of how to change username and password with strophe. Thanks in advance.
Eric Lou
  • 159
  • 3
  • 8
1
vote
0 answers

what is the difference between websocket and BOSH(Bidirectional streams Over Synchronous HTTP)?

Actually i'm trying to integrate chat application in web application. I found that we can use XMPP server(as application protocol) and web socket or BOSH(as transport protocol).But i got stuck in choosing the transport protocol why i should choose…
Alok Deshwal
  • 1,128
  • 9
  • 20
1
vote
0 answers

How to extract a limited number of messages from history, ejabberd + strophe.js

I am using ejabberd and strophe.js, I can store the messages and extract them by timestamp(strophe.mam.js plugin), but how to extract them by limit, last 5 or 10 messages?
1
vote
1 answer

Receive 'subscribe' presences with Strophe.js Roster plugin and Ejabberd

I'm using the Strophe.js Roster plugin with Ejabberd as XMPP Server. When I use Adium or some other XMPP Clients I can add some other accounts in my Roster. When I send an invitation, the other account receives presence with type=='subscribe'. Wit…
B 7
  • 670
  • 7
  • 23
1
vote
1 answer

XMPP 0059/0313 Archive message - paging backwards through result set

I have gotten the last 10 messages from archive, and trying to get the 10 before that on request and so on. On the XMPP doc. it said i set the before with my UID?? http://xmpp.org/extensions/xep-0059.html#backwards
John
  • 983
  • 1
  • 13
  • 31
1
vote
0 answers

XMPP File Transfer via JavaScript Strophe.js in Openfire

I am trying to get Strophe.js based XMPP file transfer to work. I can get logged in to work on my openfire server. I can send messages and receive messages fine but I am having trouble with file transfer. HTML:
user914425
  • 16,303
  • 4
  • 30
  • 41
0
votes
1 answer

Stroph.js Client Problem with ejabberd X-Oauth2 (Base64)

I'm in desperate need of help! I've been wrestling with Strophe.js for OAuth authentication, and I'm at my wit's end. I've scoured the documentation and examples, but I just can't get the OAuth mechanism to work. I receive the message from JS:…
0
votes
0 answers

How to implement paging using ejabberd strophe js in angular

I am using ejabberd strophe js for chat application in angular. . This what i tried for MAM: const iqStanza = $iq({ type: 'set' }).c('query', { xmlns: 'urn:xmpp:mam:2' }) .c('x', { xmlns: 'jabber:x:data', type: 'submit' }) …
0
votes
0 answers

Connection with ejabberd server from Strophe.JS (through Webscokets) saying "connection...failed"

I am trying to establishing a connection with ejabberd server from JavaScript (I am using strophe from connectivity purpose), but it's not establish a connectivity.. in console it is showing: strophe.umd.min.js:1 WebSocket connection to…