using Microsoft.AspNetCore.SignalR; using System.Threading.Tasks; namespace TwitchArchive.Web.Hubs { public class ProcessOutputHub : Hub { // methods are server-driven; clients listen on ReceiveLine public Task JoinStreamerGroup(string streamer) { return Groups.AddToGroupAsync(Context.ConnectionId, streamer); } public Task LeaveStreamerGroup(string streamer) { return Groups.RemoveFromGroupAsync(Context.ConnectionId, streamer); } } }