28 references to Clients
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (2)
Hubs.cs (2)
191await Clients.Client(Context.ConnectionId).Echo(message); 196await Clients.Client(Context.ConnectionId).NoClientHandler();
Microsoft.AspNetCore.SignalR.Tests (17)
HubConnectionHandlerTestUtils\Hubs.cs (17)
502return Clients.User(userId).Send(message); 507return Clients.Users(userIds).Send(message); 512return Clients.Client(connectionId).Send(message); 517return Clients.Clients(connectionIds).Send(message); 523await Clients.Client(connectionId).Send(message); 533return Clients.Group(groupName).Send(message); 538return Clients.GroupExcept(groupName, excludedConnectionIds).Send(message); 543return Clients.Groups(groupNames).Send(message); 548return Clients.OthersInGroup(groupName).Send(message); 553return Clients.All.Broadcast(message); 558return Clients.AllExcept(excludedConnectionIds).Send(message); 563return Clients.Others.Send(message); 568return Clients.Caller.Send(message); 573await Clients.Client(Context.ConnectionId).GetClientResult(clientValue), 574await Clients.Caller.GetClientResult(callerValue)); 995Clients.All.Send("herp"); 1004await Clients.All.Send($"{Context.ConnectionId} joined");
SignalRSamples (9)
Hubs\HubTChat.cs (9)
13return Clients.All.Send($"{name} joined the chat"); 19return Clients.All.Send($"{name} left the chat"); 24return Clients.All.Send($"{name}: {message}"); 29return Clients.Others.Send($"{name}: {message}"); 34return Clients.Group(groupName).Send($"{name}@{groupName}: {message}"); 39return Clients.OthersInGroup(groupName).Send($"{name}@{groupName}: {message}"); 46await Clients.Group(groupName).Send($"{name} joined {groupName}"); 51await Clients.Group(groupName).Send($"{name} left {groupName}"); 58return Clients.Caller.Send($"{name}: {message}");