Query protocols
Note: The content on this page pertains to Multiplay Hosting, available on the Unity Cloud Dashboard. If you’re using Clanforge, refer to Clanforge documentation.
A server query protocol is a protocol that facilitates querying information from a server. Multiplay Hosting requires all builds to implement a server query protocol.
Note: Although you implement the query protocol in the build, you specify the query protocol in the build configuration.
Multiplay Hosting uses the information supplied by the server query protocol to:
- Detect server crashes.
- Create live dashboards of analytic data.
The analytic data is available per fleet and per server. The query protocol type might include concurrently connected players (CCU), players per platform, total available server slots, and current map.
The recommended protocol is SQP, which integrates well with Multiplay Hosting. It's supported by both the Unity and Unreal Engine SDKs.
Multiplay Hosting supports A2S. This might be beneficial if you are already using a library providing A2S, such as the Steam SDK. In future, this might not have feature parity with SQP.
Tip: Refer to go-svrquery for an example implementation of SQP. go-svrquery is a Golang client or talking to game servers using various query protocols, including SQP.