I want to close the circuit from the server-side when a user is inactive for a long time. The connection must be terminated to save Azure SignalR resources.
I have created a js-script, simple timer that tracked onmousemove and onkeypress events and calls C# method when time has expired.
function CloseCircuit()
{
dotNetHelper.invokeMethodAsync('CloseCircuit');
}
I've read about the CircuitHandler implementation, but I don't need to handle the event of closing or opening a connection. I have to somehow initiate the closing of this connection from my BlazorServer app. I'd appreciate any advice