using Cloud_Manager.Models.CustomModels; using Cloud_Manager.Models.Interfaces; using Microsoft.AspNetCore.SignalR; namespace Cloud_Manager.CloudHubs { public class SalesHub : Hub { 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); } } }