Networking
Learn about the multiple protocols that Relay supports for multiplayer communication.
Read time 1 minuteLast updated 5 hours ago
The Multiplayer Services SDK uses the underlying Relay service to allow players to communicate over several different protocols, including UDP, datagram TLS (DTLS), and secure WebSocket (WSS). After allocation to a Relay server, clients talk directly to the Relay server using one of the aforementioned protocols. Relay BIND messages are further authenticated through HMAC signatures. The Allocation service relies on the Unity Authentication service and HTTPS encryption.
WebSocket connections allow for multiplayer connectivity on browsers using WebGL.