Classroom düzenleesi

This commit is contained in:
Sedat Öztürk 2025-08-31 01:54:27 +03:00
parent a9d2b33638
commit 8bed966030

View file

@ -381,11 +381,11 @@ public class ClassroomHub : Hub
// Önce SignalR grubundan çıkar // Önce SignalR grubundan çıkar
if (!string.IsNullOrEmpty(participant.ConnectionId)) if (!string.IsNullOrEmpty(participant.ConnectionId))
{ {
await Groups.RemoveFromGroupAsync(participant.ConnectionId, sessionId.ToString());
// Kullanıcıya "zorunlu çıkış" sinyali gönder // Kullanıcıya "zorunlu çıkış" sinyali gönder
await Clients.Client(participant.ConnectionId) await Clients.Client(participant.ConnectionId)
.SendAsync("ForceDisconnect", "You have been removed from the class."); .SendAsync("ForceDisconnect", "You have been removed from the class.");
await Groups.RemoveFromGroupAsync(participant.ConnectionId, sessionId.ToString());
} }
// DBde pasife al // DBde pasife al