diff --git a/Selector.Web/Hubs/NowPlayingHub.cs b/Selector.Web/Hubs/NowPlayingHub.cs new file mode 100644 index 0000000..2d349af --- /dev/null +++ b/Selector.Web/Hubs/NowPlayingHub.cs @@ -0,0 +1,21 @@ +using System; +using System.Threading.Tasks; +using Microsoft.AspNetCore.SignalR; + +using Selector.Cache; + +namespace Selector.Web.Hubs +{ + public interface INowPlayingHubClient + { + public Task OnNewPlaying(CurrentlyPlayingDTO context); + } + + public class NowPlayingHub: Hub + { + public Task SendNewPlaying(CurrentlyPlayingDTO context) + { + return Clients.All.OnNewPlaying(context); + } + } +} \ No newline at end of file