Federation allows for an unlimited number of workspaces to communicate with each other. Federating a workspace makes it visible to other workspaces over the federated network, and this makes communication with other Federation-enabled servers possible.
Rocket.Chat provides Federation using the Matrix Protocol and the Rocket.Chat Federation Network (Will be deprecated on 6.0.0).
We strongly recommend federating using Matrix Protocol
See the guide on configuring federation: