This commit is contained in:
2026-06-28 16:48:18 +08:00
parent 20d9544dc7
commit ec27005655
8 changed files with 91 additions and 20 deletions
@@ -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>