mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
feat(Transport): Obsoloete OnServerConnected
Use OnServerConnectedWithAddress and pass the remote client address instead - This allows Mirror to cache the remote client address to save round-trip calls to the transport
This commit is contained in:
parent
6de9697e0c
commit
55cb34e965
@ -66,8 +66,12 @@ public abstract class Transport : MonoBehaviour
|
|||||||
public Action OnClientDisconnected;
|
public Action OnClientDisconnected;
|
||||||
|
|
||||||
// server //////////////////////////////////////////////////////////////
|
// server //////////////////////////////////////////////////////////////
|
||||||
/// <summary>Called by Transport when a new client connected to the server.</summary>
|
|
||||||
|
// Deprecated 2024-07-20
|
||||||
|
[Obsolete("Use OnServerConnectedWithAddress and pass the remote client address instead")]
|
||||||
public Action<int> OnServerConnected;
|
public Action<int> OnServerConnected;
|
||||||
|
|
||||||
|
/// <summary>Called by Transport when a new client connected to the server.</summary>
|
||||||
public Action<int, string> OnServerConnectedWithAddress;
|
public Action<int, string> OnServerConnectedWithAddress;
|
||||||
|
|
||||||
/// <summary>Called by Transport when the server received a message from a client.</summary>
|
/// <summary>Called by Transport when the server received a message from a client.</summary>
|
||||||
|
Loading…
Reference in New Issue
Block a user