public override Task OnDisconnectedAsync(Exception exception) { int userId; if (int.TryParse(Context.UserIdentifier, out userId)) { _tablesService.CloseAllSessions(userId); } return(base.OnDisconnectedAsync(exception)); }