You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
437 B
19 lines
437 B
2 years ago
|
using Microsoft.AspNetCore.SignalR;
|
||
|
using ServerManager.Interface;
|
||
|
|
||
|
namespace ServerManager.Hubs
|
||
|
{
|
||
|
public class SalesHub : Hub<ISalesHub>
|
||
|
{
|
||
|
public override Task OnConnectedAsync()
|
||
|
{
|
||
|
Clients.
|
||
|
return base.OnConnectedAsync();
|
||
|
}
|
||
|
public async Task Publish(string a_companyId)
|
||
|
{
|
||
|
await Clients.OthersInGroup(a_companyId).AddTransaction();
|
||
|
}
|
||
|
}
|
||
|
}
|