1
This commit is contained in:
@@ -219,6 +219,17 @@ namespace Assets.MyGame.Scripts.Net
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 关闭所有 socket
|
||||
/// </summary>
|
||||
public void CloseAll()
|
||||
{
|
||||
foreach (var type in new List<SocketType>(sockets.Keys))
|
||||
{
|
||||
Close(type);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 自动重连
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user