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

XMPP message archive function using strophe.mam.js not working

I have function in JavaScript using Strophe.MAM.js setTimeout(function(){ conn.mam.query("user1@localhost", {"with": "user2@locahost", onMessage: function(message) { console.log("Message from ", $(message).find("forwarded message").attr("from"),":…
Sasa Bajic
  • 113
  • 1
  • 6
0
votes
0 answers

How to get specified user offline message from openfire and keep others stored?

Openfire uses ofoffline table to store user offline message, but as long as user is online, openfire will push all offline message to the user automatically,no matter the offline message is the user’s or not. So the question is, how to push…
liuxc
  • 65
  • 1
  • 7
0
votes
0 answers

How to manage session in strophe for multi tab?

I am creating chat system with strophe js.But I am facing issue with multi tabs. It is really big deal in system.I found so many posts in stackoverflow and other sites also. But not correct answer or ponding for answers. Is it really big…
Devendra Sharma
  • 157
  • 1
  • 10
0
votes
1 answer

Openfire Roster communication only

I am trying to implement a webchat using Openfire as a server. (at this moment i am using version 4.0.2) and implementing a web client using Strophe.js I would like to know if there is a way to restrict the communication between users that are in…
workdreamer
  • 2,836
  • 1
  • 35
  • 37
0
votes
0 answers

Angular and IE11 XmlHttpRequest issue, looking for work around or real solution

I used strophe.js for implementing the IM Chat app with Angular JS, and everything work fine in another browser, chrome, firefox, Opera, and Safari, but there are some issue with IE11 and MS Edge Browser that cause the chat to not working at all.…
0
votes
1 answer

Strophe.js sendIQ to get last activity not working, Ejabberd

I am trying to find a way to see if a user is online/connected without knowing its SID. The only way i have gotten to is to check its last activity time. If it returns an error then it is online, if it has value then it isn't online....I am not sure…
John
  • 983
  • 1
  • 13
  • 31
0
votes
0 answers

Strophe.js Ping error when without SID

I am having an error, when i use ping without the user SID. DO i have to know the receiver's SID for the ping to work?? Or can i just ping a user to see if he is online or not without an SID with just the Userid like jid1@server.com? Edit: I am…
John
  • 983
  • 1
  • 13
  • 31
0
votes
1 answer

Not able to send message using strophe.js and ejabberd

I am using strophe.js and ejabberd for implementing a chat in my site. But I couldn't successfully send a message or retrieve messages using mam. The log is printing the SENT: and RECV: strings. The code I am using to send a message is var m =…
-1
votes
1 answer

ejabberd.yml configure for strophe register a new user

I mount a server ejabberd 18.03 and cliente from this link: https://gist.github.com/developerworks/317ccf6eb2d3060610f8 BOSH conexion = http://localhost:5280/http-bind my error in console it is : The Server does not support In-Band…
Devid
  • 11
  • 6
1 2 3
4