diff --git a/BMA.EHR.Insignia/Services/InsigniaRequestProcessService.cs b/BMA.EHR.Insignia/Services/InsigniaRequestProcessService.cs index abaa5093..910c525c 100644 --- a/BMA.EHR.Insignia/Services/InsigniaRequestProcessService.cs +++ b/BMA.EHR.Insignia/Services/InsigniaRequestProcessService.cs @@ -33,25 +33,25 @@ public class InsigniaRequestProcessService : BackgroundService #endregion - public override async Task StartAsync(CancellationToken cancellationToken) - { - var client = new SocketIO("https://bma-ehr.frappet.synology.me/api/v1/org-socket", - new SocketIOOptions - { - // เพิ่ม token ใน handshake.auth - Auth = new { token = AccessToken ?? "" } - }); + //public override async Task StartAsync(CancellationToken cancellationToken) + //{ + //var client = new SocketIO("https://bma-ehr.frappet.synology.me/api/v1/org-socket", + // new SocketIOOptions + // { + // // เพิ่ม token ใน handshake.auth + // Auth = new { token = AccessToken ?? "" } + // }); - client.OnConnected += async (sender, e) => - { - Console.WriteLine("Connected to Socket.IO server"); - await client.EmitAsync("eventName", "Hello from .NET client"); - }; + //client.OnConnected += async (sender, e) => + //{ + // Console.WriteLine("Connected to Socket.IO server"); + // await client.EmitAsync("eventName", "Hello from .NET client"); + //}; - await client.ConnectAsync(); + //await client.ConnectAsync(); - await base.StartAsync(cancellationToken); - } + //await base.StartAsync(cancellationToken); + //}