Skip to main content

XMPP

The Extensible Messaging and Presence Protocol (XMPP) output in ArcGIS Velocity sends plain-text messages to individual recipients or multi-user chat rooms through an XMPP server. Destinations are configured as a comma-separated list of Jabber IDs (JIDs). An ArcGIS Arcade expression defines the message body for each processed event.

Examples

The following are example use cases for the output:

  • An operations team configures a real-time analytic to send a message to an XMPP room when a sensor reports a value above the allowed limit.

  • A logistics company uses XMPP messages to notify dispatchers when shipments experience delays, arrive at distribution centers, or require immediate attention.

Usage notes

Note the following when working with the output:

  • Consult your IT administrator to identify the XMPP service domain, connection details, and credentials. For Room connections, also confirm the room Jabber ID (JID) and any required room password.

  • In the Destination parameter, specify at least one destination. You can provide multiple destinations as a comma-separated list of up to 20 unique recipient or room JIDs.

  • Click Configure an Arcade expression for Message body to define the message sent for each processed event. The output sends messages as plain text. The message body must not exceed 65,536 bytes when encoded as UTF-8.

  • During configuration, the Test Connection property authenticates with and pings the XMPP server, but it does not send a message or verify recipient delivery or room access. Retain the documented limit of 20 unique destinations. No change to that limit is requested.

Parameters

The following table describes the parameters for the output:

Parameter

Description

Data type

XMPP service domain

(Required)

The XMPP service domain used for authentication, server certificate verification, and XMPP server discovery.

String

Username

(Required)

The username (local part of the JID) of the XMPP account used to send messages.

String

Password

(Required)

The password of the XMPP account used to send messages.

Password

Require TLS

(Optional)

Specifies whether STARTTLS encryption is required for the connection. The default is Yes.

  • Yes—Requires the XMPP server to offer STARTTLS.

  • No—Uses STARTTLS when the server offers it. If the server does not offer STARTTLS, the connection proceeds without encryption.

Server certificate and service-domain verification remain required whenever TLS is used. Selecting No does not bypass certificate validation.

Boolean

Connection type

(Required)

Specifies whether messages are sent to individual recipients or multi-user chat rooms.

Available connection types include Chat and Room.

  • Chat—Sends the message to each recipient JID listed in the Destination parameter.

  • Room—Sends the message to each room JID listed in the Destination parameter.

String

Room nickname

(Required for Room)

The nickname used by the sending client when joining each destination room.

This parameter is available when Connection type is set to Room.

String

Room password (optional)

The password used to join password-protected rooms.

Leave it blank if the room does not require a password.

This parameter is available when Connection type is set to Room.

The same password is used for all destination rooms.

Password

Destination

(Required)

One or more recipient or room Jabber IDs (JIDs), provided as a comma-separated string. Specify up to 20 unique destinations. The configured destinations are used for each processed event. Arcade expressions are not evaluated in this parameter.

A JID is the unique address of an XMPP recipient or room. Use a bare JID without a /resource suffix, such as dispatcher@example.com for a recipient or alerts@conference.example.com for a room.

Arcade Singleline Text

Message body

(Required)

An Arcade expression that defines the plain-text message body for each feature.

Fields from the processed event data can be referenced using $feature.<field_name>. The expression must return text.

No default message body is provided.

For example, return "Current odometer reading: " + Text($feature.odometer); creates a message using the odometer field value.

Arcade Multiline Text

Host (optional)

Specifies the server host to connect to directly, without changing the XMPP domain used for authentication and certificate verification.

This parameter is available under Advanced options.

String

Port (optional)

The client-to-server TCP port. Specify an integer from 1 through 65535.

The default is 5222.

This parameter is available under Advanced options.

Integer

Resource (optional)

An optional resource identifier for the client connection.

This distinguishes the connection from other sessions that use the same account.

This parameter is available under Advanced options.

String

Connection timeout (optional)

The timeout, in seconds, for establishing a TCP connection to the XMPP server.

Specify a positive integer. The default is 30.

This parameter is available under Advanced options.

Integer

Reply timeout (optional)

The maximum time, in seconds, to wait for a response from the XMPP server before the request times out.

Specify a positive integer. The default is 15.

This parameter is available under Advanced options.

Integer

Ping interval (optional)

The interval, in seconds, between connection health-check pings to the XMPP server.

Specify a positive integer. The default is 60.

This parameter is available under Advanced options.

Integer

Considerations and limitations

Consider the following when using the output:

  • The XMPP server must be reachable from ArcGIS Velocity on the configured TCP port.

  • When Require TLS is set to Yes, the XMPP server must offer STARTTLS. When it is set to No, the connection can be unencrypted if the server does not offer STARTTLS. Use Yes to require encryption.

  • When TLS is used, the connection uses TLS 1.2 or TLS 1.3. The deployment must trust the server certificate, and the certificate must be valid for the XMPP service domain. A certificate-validation failure does not cause the connection to fall back to an unencrypted connection.