From 66dd5a668369e6035d46d3be7c7ec27e13c19a8b Mon Sep 17 00:00:00 2001 From: Rick Anderson Date: Mon, 29 Oct 2018 15:06:26 -1000 Subject: [PATCH] Update hubs-api-guide-server.md --- .../overview/guide-to-the-api/hubs-api-guide-server.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/aspnet/signalr/overview/guide-to-the-api/hubs-api-guide-server.md b/aspnet/signalr/overview/guide-to-the-api/hubs-api-guide-server.md index 2ac711540a..8994541bea 100644 --- a/aspnet/signalr/overview/guide-to-the-api/hubs-api-guide-server.md +++ b/aspnet/signalr/overview/guide-to-the-api/hubs-api-guide-server.md @@ -298,8 +298,10 @@ To call client methods from the server, use the `Clients` property in a method i [!code-csharp[Main](hubs-api-guide-server/samples/sample23.cs?highlight=5)] -> [!NOTE] -> Invoking a client method is an asynchronous operation and returns a `Task`. Use `await` to ensure you wait for the message to be sent. If an error occurs while sending the message, `await` will also allow you to catch that exception using a try-catch block. +Invoking a client method is an asynchronous operation and returns a `Task`. Use `await` : + +* To ensure the message is sent without error. +* To enable catching and handling errors. **JavaScript client using generated proxy**