Stanza.io is a react library for xmpp connection
Questions tagged [stanza.io]
20 questions
9
votes
1 answer
Webrtc: Could not process WebRTC answer
Im using ejabberd + stanza io to build a realtime messaging and audio calling website.
ive managed to make my first audio call
from chrome(on PC) -> chrome(on mac) with no errors
the problem occurs when i try to make the call
from chrome(on mac)…

Med Abida
- 1,214
- 11
- 31
5
votes
0 answers
Ionic 4 Cannot access ‘Client’ before initialization at Module.createCliention
I am using stanza in ionic 4 , after successful install when i tried to test the connection it throws me error like…
ionic 4 Cannot access ‘Client’ before initialization at Module.createClient
import * as XMPP from 'stanza';
export class…

Jayprakash Singh
- 1,343
- 3
- 15
- 28
3
votes
0 answers
React-Native fetch() equals false before first yield call()
The issue:
I want to add stanza.io to my react-native project. After some research, I followed this to install stanza.io. It seems to work pretty well but a problem occurs even before reaching my new stanza-code : I have a saga from redux-saga whose…

Clément Bock
- 69
- 7
2
votes
0 answers
How to show typing indicator in Reactjs
Hi I a chat application in Reactjsand Redux. Currently I am not using any database, I am storing all the users in my redux store. I am sending the message and receiving the message using xmpp stanza.js. Now I want to show a typing indicator in my…

Puneet biswas
- 19
- 4
2
votes
1 answer
XMPP - How do I delete all messages between two jids, but only for one user?
Problem:
I want to delete all the messages (and thread) from one side of an equation between two users, A and B. I have no idea if this is even possible and if so, how.
I have the:
jid of each user
an XMPP library in JS (custom) that allows me to…

Dave
- 5,283
- 7
- 44
- 66
2
votes
0 answers
unable to get pubsub messages, 'pubsub:event' is not fired using stanza.io
I am working with pubsub on ionic framework and i'm using stanza.io library, i'm able to publish message and call getItems from node. but 'pubsub:event' is not fired. i'm unable to get real-time message which is published on node by other users. my…

gaurang
- 2,217
- 2
- 22
- 44
2
votes
2 answers
adding custom attribute to message not storing message in Archive table on server using stanza.io
I am working on ionic-framework and i'm using stanza.io library to implement chatting with xmpp server, I want to add some custom attributes while sending message, for that i have followed the steps for creating plugin. my code is as…

gaurang
- 2,217
- 2
- 22
- 44
1
vote
3 answers
How can I debug Stanza.js Authentication?
I'm currently attempting to setup an XMPP client using Stanza.js
https://github.com/legastero/stanza
I have a working server that accepts connections from a Gajim client, however when attempting to connect using Stanza.js client.connect method, the…

mcmcphillips
- 49
- 7
1
vote
2 answers
How to implement XMPP communication in Nativescript?
Is there any limitation in using a library like stanza.io for communication with an XMPP server like MongooseIM in Nativescript? What other alternatives are there?

Daniel Arechiga
- 847
- 7
- 19
1
vote
0 answers
xmpp : How to read nested array data from xml using stanza.io
I am receiving a stanza like this:
First…

Sakshi Nagpal
- 1,003
- 7
- 16
1
vote
2 answers
Stanza.io plugins XEP-0012: Last Activity
I want to implement XEP-0012 when by default its not supported by Stanza.io.
Im following how to create plugin from its documentation but its not working.
Heres my code (last.js):
'use strict';
module.exports = function (client) {
…

Gilang Pratama Putra
- 39
- 2
0
votes
0 answers
How to retrieve more than 50 historical messages between two users using StanzaJS in React Native?
I have referenced this post as well. I can query the earliest 50 messages between two users using client.searchHistory([self@hostname], {with: [target@hostname]}). But retrieving every exchange between the users is only fetching the earliest 50…

Sonal
- 1
0
votes
1 answer
How can I retrieve more than 50 historical messages between two users using stanza.js?
I'm currently building a chat application using React and Stanza.js.
I'm able to query messages between two users using:
client.searchHistory([self@hostname], {with: [target@hostname]})
However, this will only give me the 50 most earliest messages…

mcmcphillips
- 49
- 7
0
votes
1 answer
stanzajs send simple message to groupchat
I am trying to implement simple stanzajs groupchat but in tests its unclear from and to variables.
test('MUC chat', () => {
const client = createClient({});
const incoming: ReceivedMessage = {
body: 'yayyyy',
from:…

user15262125
- 19
- 6
0
votes
0 answers
How can I create multiple independent conversations between two users in XMPP Server?
I want to create a chat where multiple independent conversations can be created between two users in my XMPP Server (MongooseIM).
I tried to do it with threads but it does not work since when I log in if the user has messages offline, the server…

user2146556
- 21
- 1
- 6