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