23 references to Clients
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (2)
Hubs.cs (2)
155await Clients.Client(Context.ConnectionId).Echo(message); 160await Clients.Client(Context.ConnectionId).NoClientHandler();
Microsoft.AspNetCore.SignalR.Tests (12)
HubConnectionHandlerTestUtils\Hubs.cs (12)
422return Clients.User(userId).Send(message); 427return Clients.Users(userIds).Send(message); 432return Clients.Client(connectionId).Send(message); 437return Clients.Clients(connectionIds).Send(message); 447return Clients.Group(groupName).Send(message); 452return Clients.GroupExcept(groupName, excludedConnectionIds).Send(message); 457return Clients.OthersInGroup(groupName).Send(message); 462return Clients.Groups(groupNames).Send(message); 467return Clients.All.Broadcast(message); 472return Clients.AllExcept(excludedConnectionIds).Send(message); 477return Clients.Others.Send(message); 482return Clients.Caller.Send(message);
SignalRSamples (9)
Hubs\DynamicChat.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}");