Clients

A federate needs a client library to talk to the RTI. Up to HLA Evolved, that library came with the RTI and spoke whatever protocol its makers chose. HLA 4 adds a standard one, the Federate Protocol of IEEE 1516.1-2025 (clause 12.13), carried over TCP, TLS, WebSocket or secure WebSocket. The microrti server speaks it, so any client library that implements it can join a federation on MicroRTI, whatever language it is written in. That is why there are several clients: two that belong to MicroRTI, for Rust and Python, and a third-party one for the standard Java and C++ APIs.

The clients

LanguageLibraryHow to get it todayTransportsStatusPage
Rustmicrorti-client, part of MicroRTIcrates.ioTCP, TLS, WebSocket, secure WebSocket; an RTI inside the process (cargo feature embedded)Developed and tested with the RTI, in the same repositoryRust client
Pythonmicrorti, part of MicroRTI, built on the Rust clientLinux wheels on the releases page; elsewhere build from source (needs Rust and Python 3.11 or later); not on PyPI yetThe same four; an RTI inside the processSeparate repository (microrti-python), built on the published Rust cratesPython client
JavaPitch FedProClient (open source, Apache-2.0), standard HLA 4 Java API hla.rti1516_2025Maven Central (se.pitch.oss.fedpro:fedpro-client:2.1.0), or tag v2.1.1 built from GitHubTCP, TLS, WebSocket, secure WebSocketThird party; v2.1.1 passes the repository’s interoperability scenarios on all four transportsJava federates
C++Pitch FedProClient, standard HLA 4 C++ API rti1516_2025Tag v2.1.1 built from GitHub with CMake and protobuf 3.21TCP onlyThird party; v2.1.1 passes the repository’s interoperability scenarios over TCP, by hand on macOS and every week on Ubuntu 24.04C++ federates

The interoperability scenarios are in the repository: interop/pitch-fedpro for Java and interop/pitch-fedpro-cpp for C++. Their READMEs list what each run covers and what it leaves out. A GitHub workflow of the repository runs both every week on Ubuntu 24.04, against a server built from the main branch.

Several languages in one federation

The RTI only sees Federate Protocol sessions and cannot tell which language a federate is written in, so federates written in different languages can share one federation execution. In this run, three federates sat in the same chat room on one microrti: the chat example of the repository (Rust, named rust), the federate of the Java federates page (named java) and the federate of the C++ federates page (named cpp). The Java and C++ federates say hello when they join; hello from Rust was typed into the chat example after both had spoken.

What the Rust federate printed:

* rust joined Chat at tcp://127.0.0.1:63673; type a line to say it, end the input (Ctrl-D) to leave
<java> hello from Java
<cpp> hello from C++
* left Chat; the room is closed

What the Java federate printed:

joined Chat as java
<cpp> hello from C++
<rust> hello from Rust
left; others are still in the room

What the C++ federate printed:

joined Chat as cpp
<rust> hello from Rust
left; others are still in the room

Each federate hears the lines said after it subscribed, and nobody hears their own. The repository has a script for a stricter version of this check: interop/pitch-fedpro-cpp/tools/with_chat.sh puts the C++ client and the chat example in one federation execution, each side creating it in turn, and checks that each side sees the other join and hears its line. NOTES.md in the same directory records both orders passing, and two copies of the chat sample shipped with FedProClient talking with the chat example.

Which one to use

For a new federate, start with Rust or Python. Both are maintained with the RTI, reach it over all four transports, and can run an RTI inside your process for tests and notebooks (see An RTI inside your process). Their APIs follow the services of IEEE 1516.1-2025 one for one, but they are not the standard Java or C++ APIs.

If you have Java or C++ code written against the standard HLA 4 APIs, or have to write against them, use FedProClient. Your code stays on the standard API: the only part specific to MicroRTI is the RTI address you give to Connect. In C++, plan for plain TCP.

For a web page there is no client yet. The microrti server already listens on WebSocket and secure WebSocket, the transports a browser can open (listeners).