Coder Social home page Coder Social logo

Add priority to presence about jsxc HOT 6 CLOSED

jsxc avatar jsxc commented on May 18, 2024
Add priority to presence

from jsxc.

Comments (6)

sualko avatar sualko commented on May 18, 2024

@davodego maybe you want to test this.

from jsxc.

zauberstuhl avatar zauberstuhl commented on May 18, 2024

@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.

sualko avatar sualko commented on May 18, 2024

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.

zauberstuhl avatar zauberstuhl commented on May 18, 2024

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.

sualko avatar sualko commented on May 18, 2024

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.

zauberstuhl avatar zauberstuhl commented on May 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.