comment เพราะไม่ได้ใช้แล้ว #1831
Some checks failed
release-dev / release-dev (push) Failing after 10s

This commit is contained in:
harid 2025-10-03 11:04:39 +07:00
parent ddf899ce5d
commit d0599aedea

View file

@ -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);
//}