Priority Property
      
 

Description

Holds resource priority information.


Property type

An Integer value.  


Syntax

object.Priority [= value]



The Priority Property syntax has these parts:

Part Description
object An expression evaluating to an object of type wodXMPP.
value An Integer value.

Remarks

Defines priority of the session. It is only relevant when more than one instance with same JID (username@domain.com) is connected to the server. For instance, you can connect from your desktop (by using 'Desktop' resource) and from your laptop (by using 'Laptop' resource) to same server. You can then set higher priority to your Laptop. When someone sends message to your username@domain.com, it will be delivered to the client with highest priority. Messages explicitly sent to username@domain.com/Desktop will only go to the desktop client.

 

For example, you would want wodXMPP to run as High priority (10) on Laptop, and lower priority (5) on Desktop computer.