The cloud manager acts as an intermediary for syncing between the local biskilog server manager and the biskilog accounting web application
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.

18 lines
549 B

using Cloud_Manager.Models.CustomModels;
using Cloud_Manager.Models.Interfaces;
using Microsoft.AspNetCore.SignalR;
namespace Cloud_Manager.CloudHubs
{
public class SalesHub : Hub<ISalesHub>
{
public async Task JoinCompanyGroup(string a_companyId)
{
await Groups.AddToGroupAsync(Context.ConnectionId, a_companyId);
}
public async Task AddTransaction(string a_companyId, SaleItem a_sale)
{
await Clients.OthersInGroup(a_companyId).TransactionMade(a_sale);
}
}
}