Class DisconnectTests
Validates the client disconnection process. This assures that:
- When a client disconnects from the server that the server: -- Detects the client disconnected. -- Cleans up the transport to NGO client (and vice versa) mappings.
- When a server disconnects a client that: -- The client detects this disconnection. -- The server cleans up the transport to NGO client (and vice versa) mappings.
- When Destroy
With the server-side player object is destroyedOwner - When Dont
Destroy the server-side player object ownership is transferred back to the serverWith Owner
Inherited Members
Namespace: Unity.Netcode.RuntimeTests
Assembly: solution.dll
Syntax
public class DisconnectTests : NetcodeIntegrationTest
Constructors
Name | Description |
---|---|
Disconnect |
Properties
Name | Description |
---|---|
Number |
Methods
Name | Description |
---|---|
Client |
|
On |
Override this to add components or adjustments to the default player prefab
m_Player |
On |
This is invoked before the server and client(s) are started. Override this method if you want to make any adjustments to their NetworkManager instances. |
On |
Called before creating and starting the server and clients
Note: For All |