Select your preferred scripting language. All code snippets will be displayed in this language.
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
ClosehostId | Id of udp socket used to establish connection. |
address | Ip4. |
port | Port. |
network | Guid of Relay network. |
source | Guid of user. |
error | Possible error (NetworkError.Ok if success). |
node | Slot id for this user. |
Create dedicated connection to Relay server.
Client calls this function to set itself as an owner of the network group on the Relay server. This client should call ReceiveRelayEventFromHost periodically to be notified about connection/disconnection events to/from Relay server.