javascript - strophe/xmpp set priority of a client manualy -
is there way set priority of client in strophe.js manually xmpp connection.
i communicating google talk server, , have 2 seperate clients. 1 client signals availability status (online/offline/etc...).the other receiving messages regardless of other clients status.
http://www.ietf.org/rfc/rfc3921.txt section 11.1.4
specifies that
for message stanzas, server should deliver stanza highest-priority available resource (if resource did not provide value element, server should consider have provided value of zero). if 2 or more available resources have same priority, server may use other rule (e.g., recent connect time, recent activity time, or highest availability determined hierarchy of values) choose between them or may deliver message such resources. however, server must not deliver stanza available resource negative priority; if available resource has negative priority, server should handle message if there no available resources (defined below).
so want set negative priority 1 client, , positive priority other. way 1 of clients receives messages. there way this? or presence priority purely handled server?
is simple as:
connection.send($pres({priority: 100}))
Comments
Post a Comment