'错误:服务器超时已过,没有收到来自服务器的消息.'.
我正在尝试调试一些服务器端代码,而当我这样做时,客户端会在不到一分钟的时间内断开连接.
我只使用SignalR与客户端通信,而没有控制器.
是否有任何设置可以禁用超时或至少使它比现在更长?
我的launchSettings.json:
{
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:26793",
"sslPort": 44386
}
},
"profiles": {
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development",
"ASPNETCORE_HTTPS_PORT": "44386"
}
},
"Api": {
"commandName": "Project",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development",
"ASPNETCORE_URLS": "https://localhost:5001;http://localhost:5000"
}
}
}
}
Run Code Online (Sandbox Code Playgroud)