Classroom düzenleesi
This commit is contained in:
parent
a9d2b33638
commit
8bed966030
1 changed files with 2 additions and 2 deletions
|
|
@ -381,11 +381,11 @@ public class ClassroomHub : Hub
|
|||
// Önce SignalR grubundan çıkar
|
||||
if (!string.IsNullOrEmpty(participant.ConnectionId))
|
||||
{
|
||||
await Groups.RemoveFromGroupAsync(participant.ConnectionId, sessionId.ToString());
|
||||
|
||||
// Kullanıcıya "zorunlu çıkış" sinyali gönder
|
||||
await Clients.Client(participant.ConnectionId)
|
||||
.SendAsync("ForceDisconnect", "You have been removed from the class.");
|
||||
|
||||
await Groups.RemoveFromGroupAsync(participant.ConnectionId, sessionId.ToString());
|
||||
}
|
||||
|
||||
// DB’de pasife al
|
||||
|
|
|
|||
Loading…
Reference in a new issue