'Error: Server timeout elapsed without receiving a message from the server.'.
I'm trying to debug some server-side code and while I do that the client gets disconnected in less than a minute.
I'm only using SignalR to communicate to clients, without controllers yet.
Is there any setting that can disable timeout or at least make it way longer than it is now?
my 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"
}
}
}
}
this._hubConnection = new HubConnectionBuilder().withUrl('http://localhost:5000/match').build(); this._hubConnection.serverTimeoutInMilliseconds = 1000 * 1000;
I tried to increase serverTimeoutInMilliseconds but haven't tested it beause I am very busy with other things right now. If you try it and it works please answer my post accordingly. – Arhire Ionut