mirror of
https://github.com/TbT480jcspy/Iris-Rec-2023-Server-Code.git
synced 2026-09-08 06:31:23 -07:00
20 lines
529 B
C#
20 lines
529 B
C#
using Microsoft.AspNetCore.SignalR;
|
|
|
|
namespace ir23.Hubs
|
|
{
|
|
public class SRHub : Hub
|
|
{
|
|
public override async Task OnConnectedAsync()
|
|
{
|
|
Console.WriteLine($"Client Connected: {Context.ConnectionId}");
|
|
await base.OnConnectedAsync();
|
|
}
|
|
|
|
public override async Task OnDisconnectedAsync(Exception exception)
|
|
{
|
|
Console.WriteLine($"Client Disconnected: {Context.ConnectionId}");
|
|
await base.OnDisconnectedAsync(exception);
|
|
}
|
|
}
|
|
}
|