public async Task NotifyNewMessageAsync(uint groupId) { ChatHub hub = hubs.GetOrAdd(groupId, new ChatHub(groupId, logger)); await hub.Notify(NotificationType.NewMessage, new CancellationToken()); }
public async Task NotifyConnectedAsync(uint groupId, Guid user) { ChatHub hub = hubs.GetOrAdd(groupId, new ChatHub(groupId, logger)); await hub.Notify(NotificationType.UserConnected, new CancellationToken()); }