mirror of
https://github.com/fiodarsazanavets/aspire-13-examples.git
synced 2026-06-20 12:23:14 +00:00
18 lines
331 B
C#
18 lines
331 B
C#
using Microsoft.AspNetCore.SignalR;
|
|
|
|
namespace OnlineShop.ApiService;
|
|
|
|
public class LocationHub : Hub
|
|
{
|
|
public async Task UpdateLocation(
|
|
double latitude,
|
|
double longitude)
|
|
{
|
|
await Clients.All.SendAsync(
|
|
"ReceiveLocationUpdate",
|
|
latitude,
|
|
longitude);
|
|
}
|
|
}
|
|
|