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