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
|
||||
|
||||
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);
|
||||
//}
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue