Skip to content

Commit b49bb88

Browse files
Merge pull request #34047 from rammba/features/signalr-dotnet-client
[signalr/dotnet-client.md] Reference FAQ article instead of GitHub readme
2 parents 4b30e0e + 98c07dc commit b49bb88

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

aspnetcore/signalr/dotnet-client.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ connection.Closed += error =>
139139
In order to configure a custom number of reconnect attempts before disconnecting or change the reconnect timing, `WithAutomaticReconnect` accepts an array of numbers representing the delay in milliseconds to wait before starting each reconnect attempt.
140140

141141
```csharp
142-
HubConnection connection= new HubConnectionBuilder()
142+
HubConnection connection = new HubConnectionBuilder()
143143
.WithUrl(new Uri("http://127.0.0.1:5000/chathub"))
144144
.WithAutomaticReconnect(new[] { TimeSpan.Zero, TimeSpan.Zero, TimeSpan.FromSeconds(10) })
145145
.Build();
@@ -231,7 +231,7 @@ The `InvokeAsync` method returns a `Task` which completes when the server method
231231
The `SendAsync` method returns a `Task` which completes when the message has been sent to the server. No return value is provided since this `Task` doesn't wait until the server method completes. Any exceptions thrown on the client while sending the message produce a faulted `Task`. Use `await` and `try...catch` syntax to handle send errors.
232232

233233
> [!NOTE]
234-
> Calling hub methods from a client is only supported when using the Azure SignalR Service in *Default* mode. For more information, see [Frequently Asked Questions (azure-signalr GitHub repository)](https://github.com/Azure/azure-signalr/blob/dev/docs/faq.md#what-is-the-meaning-of-service-mode-defaultserverlessclassic-how-can-i-choose).
234+
> Calling hub methods from a client is only supported when using the Azure SignalR Service in *Default* mode. For more information, see [Frequently Asked Questions](/azure/azure-signalr/signalr-resource-faq).
235235
236236
## Call client methods from hub
237237

aspnetcore/signalr/dotnet-client/sample/SignalRChat/Hubs/ChatHub.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ public class ChatHub : Hub
88
#region snippet_SendMessage
99
public async Task SendMessage(string user, string message)
1010
{
11-
await Clients.All.SendAsync("ReceiveMessage", user,message);
11+
await Clients.All.SendAsync("ReceiveMessage", user, message);
1212
}
1313
#endregion
1414
}

0 commit comments

Comments
 (0)