Wait a few seconds in SignalR Core disconnect event without blocking the application on exist – SEO
In the OnDisconnectedAsync event of my hub, I want to wait a few second before performing some action. I tried to make it async for using non-blocking Task.Delay: public override async Task OnDisconnectedAsync(Exception exception) { var session = (VBLightSession)Context.Items["Session"]; activeUsers.Remove(session.User.Id);…