// Program.cs - 服务端配置 var builder = WebApplication.CreateBuilder(args); // 1. 添加SignalR服务 builder.Services