Back to product page

Priority property


Holds priority information.

Type

Integer

Syntax

  • Basic
object.Priority [= value]
The Priority(object,value) syntax has these parts:
objectAn expression evaluating to an object of type wodXMPP
valueA 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.

Platforms

Windows