Back to product page

Resource property


Holds name of the resource.

Type

String

Syntax

  • Basic
object.Resource [= value]
The Resource(object,value) syntax has these parts:
objectAn expression evaluating to an object of type XMPPContact
valueA String value.

Remarks

Resource property will hold information on user's resource that he is using (like a location). The resource in this case is a part of the JID. A typical example for this would be user@wippien.com/home. In this example, the "home" is user's resource.

A single user can have multiple resources defined. This means that instead of creating new accounts a single user can use one account on multiple locations/machines at the same time, providing different resources. If CombineResources property is set to True, this property can contain more than one resource - separated by newline characters. This happens if user connects to the network from two or more locations with same JID, but different Resource parameter. If CombineResources is set to False, then each such connection is shown as separate Contact.

Platforms

Windows