Questions tagged [stanza.io]

Stanza.io is a react library for xmpp connection

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…
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…
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…
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?
1
vote
0 answers

xmpp : How to read nested array data from xml using stanza.io

I am receiving a stanza like this: First…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/xmpp" class="post-tag grid--cell" title="show questions tagged 'xmpp'" rel="tag">xmpp</a> <a href="../../questions/tagged/stanza.io" class="post-tag grid--cell" title="show questions tagged 'stanza.io'" rel="tag">stanza.io</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Mar 19 '18 at 11:57">asked Mar 19 '18 at 11:57</time> <a href="../../users/4604179/sakshi-nagpal" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/4604179.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Sakshi Nagpal" /> </a> <div class="s-user-card--info"> <a href="../../users/4604179/sakshi-nagpal" class="s-user-card--link">Sakshi Nagpal</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">1,003</li> <li class="s-award-bling s-award-bling__silver" title="7 silver badges">7</li> <li class="s-award-bling s-award-bling__bronze" title="16 bronze badges">16</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-41156817"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>1</strong></span> <div class="viewcount">vote</div> </div> </div> <div class="status "> <strong>2</strong> answers </div> </div> </div> <div class="summary"> <h3><a href="../../questions/41156817/stanza-io-plugins-xep-0012-last-activity" class="question-hyperlink">Stanza.io plugins XEP-0012: Last Activity</a></h3> <div class="excerpt">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) { …</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/xmpp" class="post-tag grid--cell" title="show questions tagged 'xmpp'" rel="tag">xmpp</a> <a href="../../questions/tagged/ejabberd" class="post-tag grid--cell" title="show questions tagged 'ejabberd'" rel="tag">ejabberd</a> <a href="../../questions/tagged/stanza.io" class="post-tag grid--cell" title="show questions tagged 'stanza.io'" rel="tag">stanza.io</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Dec 15 '16 at 05:08">asked Dec 15 '16 at 05:08</time> <a href="../../users/6138271/gilang-pratama-putra" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/6138271.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Gilang Pratama Putra" /> </a> <div class="s-user-card--info"> <a href="../../users/6138271/gilang-pratama-putra" class="s-user-card--link">Gilang Pratama Putra</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">39</li> <li class="s-award-bling s-award-bling__bronze" title="2 bronze badges">2</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-75580388"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>0</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status "> <strong>0</strong> answers </div> </div> </div> <div class="summary"> <h3><a href="../../questions/75580388/how-to-retrieve-more-than-50-historical-messages-between-two-users-using-stanz" class="question-hyperlink">How to retrieve more than 50 historical messages between two users using StanzaJS in React Native?</a></h3> <div class="excerpt">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…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/react-native" class="post-tag grid--cell" title="show questions tagged 'react-native'" rel="tag">react-native</a> <a href="../../questions/tagged/xmpp" class="post-tag grid--cell" title="show questions tagged 'xmpp'" rel="tag">xmpp</a> <a href="../../questions/tagged/stanza.io" class="post-tag grid--cell" title="show questions tagged 'stanza.io'" rel="tag">stanza.io</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Feb 27 '23 at 12:16">asked Feb 27 '23 at 12:16</time> <a href="../../users/19185961/sonal" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/19185961.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Sonal" /> </a> <div class="s-user-card--info"> <a href="../../users/19185961/sonal" class="s-user-card--link">Sonal</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">1</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-66976485"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>0</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status "> <strong>1</strong> answer </div> </div> </div> <div class="summary"> <h3><a href="../../questions/66976485/how-can-i-retrieve-more-than-50-historical-messages-between-two-users-using-st" class="question-hyperlink">How can I retrieve more than 50 historical messages between two users using stanza.js?</a></h3> <div class="excerpt">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…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/reactjs" class="post-tag grid--cell" title="show questions tagged 'reactjs'" rel="tag">reactjs</a> <a href="../../questions/tagged/xmpp" class="post-tag grid--cell" title="show questions tagged 'xmpp'" rel="tag">xmpp</a> <a href="../../questions/tagged/stanza.io" class="post-tag grid--cell" title="show questions tagged 'stanza.io'" rel="tag">stanza.io</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Apr 06 '21 at 21:08">asked Apr 06 '21 at 21:08</time> <a href="../../users/9232041/mcmcphillips" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/9232041.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="mcmcphillips" /> </a> <div class="s-user-card--info"> <a href="../../users/9232041/mcmcphillips" class="s-user-card--link">mcmcphillips</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">49</li> <li class="s-award-bling s-award-bling__bronze" title="7 bronze badges">7</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-66322035"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>0</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status "> <strong>1</strong> answer </div> </div> </div> <div class="summary"> <h3><a href="../../questions/66322035/stanzajs-send-simple-message-to-groupchat" class="question-hyperlink">stanzajs send simple message to groupchat</a></h3> <div class="excerpt">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:…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/xmpp" class="post-tag grid--cell" title="show questions tagged 'xmpp'" rel="tag">xmpp</a> <a href="../../questions/tagged/ejabberd" class="post-tag grid--cell" title="show questions tagged 'ejabberd'" rel="tag">ejabberd</a> <a href="../../questions/tagged/stanza.io" class="post-tag grid--cell" title="show questions tagged 'stanza.io'" rel="tag">stanza.io</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Feb 22 '21 at 19:15">asked Feb 22 '21 at 19:15</time> <a href="../../users/15262125/user15262125" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/15262125.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="user15262125" /> </a> <div class="s-user-card--info"> <a href="../../users/15262125/user15262125" class="s-user-card--link">user15262125</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">19</li> <li class="s-award-bling s-award-bling__bronze" title="6 bronze badges">6</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-56907007"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>0</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status "> <strong>0</strong> answers </div> </div> </div> <div class="summary"> <h3><a href="../../questions/56907007/how-can-i-create-multiple-independent-conversations-between-two-users-in-xmpp-" class="question-hyperlink">How can I create multiple independent conversations between two users in XMPP Server?</a></h3> <div class="excerpt">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…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/xmpp" class="post-tag grid--cell" title="show questions tagged 'xmpp'" rel="tag">xmpp</a> <a href="../../questions/tagged/chat" class="post-tag grid--cell" title="show questions tagged 'chat'" rel="tag">chat</a> <a href="../../questions/tagged/node-xmpp" class="post-tag grid--cell" title="show questions tagged 'node-xmpp'" rel="tag">node-xmpp</a> <a href="../../questions/tagged/stanza.io" class="post-tag grid--cell" title="show questions tagged 'stanza.io'" rel="tag">stanza.io</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Jul 05 '19 at 17:12">asked Jul 05 '19 at 17:12</time> <a href="../../users/2146556/user2146556" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/2146556.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="user2146556" /> </a> <div class="s-user-card--info"> <a href="../../users/2146556/user2146556" class="s-user-card--link">user2146556</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">21</li> <li class="s-award-bling s-award-bling__silver" title="1 silver badges">1</li> <li class="s-award-bling s-award-bling__bronze" title="6 bronze badges">6</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="s-pagination pager fr"> <div class="s-pagination--item is-selected">1</div> <a class="s-pagination--item" href="../../questions/tagged/stanza.io_page=2" rel="" title="Go to page 2">2</a> <a class="s-pagination--item" href="../../questions/tagged/stanza.io_page=2" rel="next" title="Go to page 2"> Next</a> </div> </div> </div> </div> </div> <script src="../../static/js/stack-icons.js"></script> <script src="../../static/js/fromnow.js"></script> </body> </html>