comment เพราะไม่ได้ใช้แล้ว #1831
Some checks failed
release-dev / release-dev (push) Failing after 10s
Some checks failed
release-dev / release-dev (push) Failing after 10s
This commit is contained in:
parent
ddf899ce5d
commit
d0599aedea
1 changed files with 16 additions and 16 deletions
|
|
@ -33,25 +33,25 @@ public class InsigniaRequestProcessService : BackgroundService
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
public override async Task StartAsync(CancellationToken cancellationToken)
|
//public override async Task StartAsync(CancellationToken cancellationToken)
|
||||||
{
|
//{
|
||||||
var client = new SocketIO("https://bma-ehr.frappet.synology.me/api/v1/org-socket",
|
//var client = new SocketIO("https://bma-ehr.frappet.synology.me/api/v1/org-socket",
|
||||||
new SocketIOOptions
|
// new SocketIOOptions
|
||||||
{
|
// {
|
||||||
// เพิ่ม token ใน handshake.auth
|
// // เพิ่ม token ใน handshake.auth
|
||||||
Auth = new { token = AccessToken ?? "" }
|
// Auth = new { token = AccessToken ?? "" }
|
||||||
});
|
// });
|
||||||
|
|
||||||
client.OnConnected += async (sender, e) =>
|
//client.OnConnected += async (sender, e) =>
|
||||||
{
|
//{
|
||||||
Console.WriteLine("Connected to Socket.IO server");
|
// Console.WriteLine("Connected to Socket.IO server");
|
||||||
await client.EmitAsync("eventName", "Hello from .NET client");
|
// await client.EmitAsync("eventName", "Hello from .NET client");
|
||||||
};
|
//};
|
||||||
|
|
||||||
await client.ConnectAsync();
|
//await client.ConnectAsync();
|
||||||
|
|
||||||
await base.StartAsync(cancellationToken);
|
//await base.StartAsync(cancellationToken);
|
||||||
}
|
//}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue