Comments (6)
@davodego maybe you want to test this.
from jsxc.
@sualko hi, I just finished implementing offline support for our xmpp server (see diaspora/vines#30)
and I discovered that jsxc sends zero presence-priority's on default. In my opinion you should send at least for the 'Online'-presence a positive priority. Otherwise jsxc will receive no offline messages on default.
(source 8.5.2.1.1 xmpp message rules)
from jsxc.
Next time, it would be create if you would open a new issue, because it's easier to organize.
On default jsxc sends no priority, not even a zero and on init you can set some default values. So I see no problem.
from jsxc.
Next time, it would be create if you would open a new issue, because it's easier to organize.
next time :)
On default jsxc sends no priority, not even a zero
if you are not sending something a xmpp server will handle it as zero.
on init you can set some default values. So I see no problem.
perfect! was not aware of that I can change priority, too. Thanks.
from jsxc.
if you are not sending something a xmpp server will handle it as zero.
You are right. But I don't get the next point:
Otherwise jsxc will receive no offline messages on default.
In the spec theres nothing about a positive priority for offline messages:
For message stanzas, the server MAY choose to store the stanza on behalf of the user and deliver it when the user next becomes available
from jsxc.
checkout the rule section:
If all of the available resources have a negative presence priority then the server SHOULD either (a) store the message offline for later delivery or (b) return a stanza error to the sender, which SHOULD be
<service-unavailable/>
.
but you are right I made a mistake. The RFC is talking only about non-negative values. Means I should deliver to zero and positive values. Sorry for the confusion :(
from jsxc.
Related Issues (20)
- Notification only on mention? HOT 1
- Nickname change leaves MUC room dialog unmodifiable HOT 6
- OMEMO messages from MAM won't be decrypted HOT 5
- Provide your PGP signing key promimently on the JSXC web-site / install instructions. HOT 4
- Avatars not loading on reconnect
- Creating a common headless JSXC package with pazznetwork/ngx-chat HOT 1
- Nextcloud unknown error on registration
- Registration failed Managed (Beta service) HOT 6
- [To delete]
- cross domain request was not possible. Either your BOSH server does not send any Access-Control-Allow-Origin header or the content-security-policy (CSP) blocks your request. The safest way is still to use Apache ProxyRequest or Nginx proxy_pass. HOT 1
- Clicking online in Nextcloud JSXC with Activate time-limited tokens (beta) enabled causes JSXC to refresh quickly and not do anything except create a new BOSH session in prosody HOT 1
- JSXC chat menu covers up Nextcloud Dashboard icons on Nextcloud 24.0.1 with Dashboard 7.4.0 on Google Chrome v102 HOT 1
- no-request-id and HTTP 405 from nextcloud instance when registering for beta external server HOT 2
- does this lib. supports end-to-end encryption for group chat(muc).
- Invalid XML received. Maybe https://xxx.xxx.xxx/http-bind/ was redirected. You should use an absolute url.
- Use Transifex for continuous translation please HOT 5
- xmpp.org: Host doap file for client presenation
- video call in from different networks doesn't work HOT 1
- Cannot send to existing MUC if MUC is on another domain HOT 1
- Edit GitHub Repository
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jsxc.