TCP (Server)
The TCP (Server) feed type in ArcGIS Velocity receives data from external clients through a TCP socket. Clients connect to the running feed using the Velocity server's reachable hostname or IP address and the configured port.
Example
The following is an example use case for the feed:
A fleet operator uses the TCP (Server) feed to receive location updates from vehicles. Each vehicle connects to the feed and sends its location as JSON. A real-time analytic calculates speed and distance traveled and updates a feature layer that dispatchers monitor on a map.
Usage notes
Note the following when working with the feed:
Velocity supports multiple input data formats for this feed. These include JSON, GeoJSON, Esri JSON, XML, and delimited text.
After configuring the connection details, provide sample data to define the format and schema, and configure the geometry, time, and track ID fields as appropriate for your data.
When choosing the delimited text format, specify the delimiter between attribute values and terminate each record with a newline
\n.Velocity identifies JSON, GeoJSON, Esri JSON, and XML messages by their complete structure, so they do not require newline separators. A message can arrive across multiple socket reads, and a single read can contain multiple messages.
GeoJSON and Esri JSON support individual features and feature collections or feature sets. The feed preserves the attributes and geometry of each feature.
Use a different available port for each TCP listener on the same machine. Multiple clients can connect to one feed if their data matches the configured format and schema.
Parameter
The following table describes the parameter for the feed:
|
Parameter |
Description |
Data type |
|---|---|---|
|
Port |
The local port that the Velocity server uses to connect to the TCP socket to receive data for the feed. Specify an available port from 1 through 65535. |
Integer |
Considerations and limitations
Consider the following when using the feed:
Velocity reports an error if the port is out of range or cannot be bound locally. A successful validation or test connection confirms that the port is available locally. It does not verify that external clients can reach the feed, and it does not reserve the port for later use. The port must remain available when the feed starts.
External clients must be able to reach the Velocity server on the configured port. Ensure that applicable firewall and network settings allow incoming TCP connections to that port.