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

Using strophejs how to implement message seen feature

I am using openfire as xmpp server and strophejs in client, is there any way we can implement features like message seen,message delivered, message not delivered,message sending failed list. is there any plugin for implementing this as I couldn't…
rahul
  • 406
  • 1
  • 5
  • 14
0
votes
1 answer

JWT auth in ejabberd

I have configured ejabberd service to use jwt token for authenticating users by following this doc ejabberd authentication. In ejabberd.yml file, I have configured auth mechanism as below `auth_method: [jwt, sql] jwt_key:…
AD95
  • 180
  • 2
  • 7
0
votes
1 answer

ionic cordova xmpp Strophe si-filetransfer

I am developing an ionic-cordova application with chat via Openfire. I can’t get the si-filetransfer plugin to work This are the npm packages: "strophe.js": "^1.2.14", "strophejs-plugin-http-file-upload": "^1.0.3", "strophejs-plugins": "0.0.7", and…
incal
  • 43
  • 6
0
votes
1 answer

I'm developing an Angular6 app, i am trying to send message from web using Strophe

This is method of my chat service, sendCustomMessage(to, from, body) { const query = $msg({to: to, from: from, type: 'chat'}).c("body").t(body); console.log("query", query) this._xmppConnection.send(query); } i am getting issue for…
0
votes
1 answer

How to connect strophe without password

Currently, I can able to connect with strophe by giving jid and password in Angular project. But by giving jid and password is not safe. Instead of giving jid and password, is there any other way like JWT simple authentication? Ejabberd is hosted in…
Sahal
  • 109
  • 2
  • 9
0
votes
1 answer

Ejabberd muc room history getting erased when server restarts

I am subscribing to a muc room and I am getting the messages when a user messages to muc room, everything upto here is fine, but when server restarts room history is getting erased, therefore I am unable to get any previous messages. This is my…
sashank
  • 21
  • 3
0
votes
1 answer

createInstantRoom throwing error in strophe.muc.js

I'm trying to create muc room using createInstantRoom method in strophe.muc.js, but its throwing error. can anyone plese tell me what is the format of room name given as input to createInstantRoom method I tried…
sashank
  • 21
  • 3
0
votes
1 answer

Connecting to Strophe.js in Angular 6

I have connected to Strophe.js by placing the Strophe.js files in assets and Connection is successful. But after connecting to it, UI is getting hanged. Can any one please help
0
votes
1 answer

Strophe js how to get last message of all user in rostered users

I am using Strophe js for ejabberd chat application. how to get last message of all user who all rostered with logged in user.
Prashanth v
  • 202
  • 3
  • 15
0
votes
1 answer

How to Get offline message count for muc room using Stophe js

I am developing a chat application using ejabberd and Strophe.js . my question is how to get offline message of muc room.or give some example to how to implement message delivery receipts in strophe js plugin.
Prashanth v
  • 202
  • 3
  • 15
0
votes
1 answer

How to make sure that a chat-room was left successfully? (instance.connection.muc.leave())

Here I've found that there's an ability to add a callback as the 3rd argument to a leave method: https://github.com/metajack/strophejs-plugins/blob/96da306f5394b901e190a3f7365fbbb676fddb51/muc/strophe.muc.js#L117 But it doesn't work. How to add a…
Julia
  • 674
  • 1
  • 6
  • 18
0
votes
1 answer

strophe.js chat state notifications

I am trying to implement strophe.js chat state plugin but unable to find any readme document. Saw the similar question but there was no answer. StropheJs Chat State Notification plugin?
Lvar
  • 1
0
votes
1 answer

Strophe.js send($pres()) not working in Typescript angular (version 5)

I am using Strophe.js to connect with Openfire XMPP server. Connection got established with status CONNECTED but I am not able to send presence to server i.e user is not showing online on Openfire console. Here is my plunker link : Plunker In the…
Pooja Pradhan
  • 83
  • 1
  • 7
0
votes
1 answer

Strophe.js in angular 4 application

I want to use Strophe.js library in an angular 4 application to connect to XMPP server. I have connected to server successfully. But I am not able to send presence so user is not showing online. Can anyone please tell how to use $pres,…
0
votes
0 answers

Strophejs ejabberd getting archived messages, not getting first message

I am using strophejs for querying archived messages from ejabberd. I am getting the messages but problem is that first message is not in the response. The code is as follows var iq = $iq({type: 'set', id: $scope.jid}) .c('query',…