You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-signalr/signalr-tutorial-authenticate-azure-functions.md
+41-41Lines changed: 41 additions & 41 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@ In this step-by-step tutorial, you build a chat room with authentication and pri
24
24
> [!NOTE]
25
25
> You can get the code mentioned in this article from [GitHub](https://github.com/aspnet/AzureSignalR-samples/blob/90523e17ee5fec184a197b143bb5070bc6d4f312/samples/ServerlessChatWithAuth/v4-model/).
26
26
27
-
# [Isolated process](#tab/isolated-process)
27
+
# [Model v3](#tab/nodejs-v3)
28
28
29
29
> [!NOTE]
30
30
> You can get the code mentioned in this article from [GitHub](https://github.com/aspnet/AzureSignalR-samples/blob/90523e17ee5fec184a197b143bb5070bc6d4f312/samples/ServerlessChatWithAuth/v3-model/).
@@ -236,58 +236,58 @@ The web app also requires an HTTP API to send chat messages. Create an HTTP trig
236
236
# [Model v4](#tab/nodejs-v4)
237
237
1. From the root project folder, create an HTTP trigger functionnamed`sendMessage` from the template by using the following command:
238
238
239
-
```bash
240
-
func new --name sendMessage --template "Http trigger"
241
-
```
239
+
```bash
240
+
func new --name sendMessage --template "Http trigger"
241
+
```
242
242
243
243
1. Open the _src/functions/sendMessage.js_ file, update the content as follows:
The functioncontains an HTTP trigger and a SignalR output binding. It takes the body from the HTTP request and sends it to clients connected to Azure SignalR Service. It invokes a functionnamed`newMessage` on each client.
278
+
The functioncontains an HTTP trigger and a SignalR output binding. It takes the body from the HTTP request and sends it to clients connected to Azure SignalR Service. It invokes a functionnamed`newMessage` on each client.
279
279
280
-
The functioncanread the sender's identity and can accept a `recipient` value in the message body to allow you to send a message privately to a single user. You'll use these functionalities later in the tutorial.
280
+
The functioncanread the sender's identity and can accept a `recipient` value in the message body to allow you to send a message privately to a single user. You'll use these functionalities later in the tutorial.
281
281
282
282
1. Save the file.
283
283
284
284
# [Model v3](#tab/nodejs-v3)
285
285
286
286
1. From the root project folder, create an HTTP trigger functionnamed`sendMessage` from the template by using the following command:
287
287
288
-
```bash
289
-
func new --name sendMessage --template "Http trigger"
290
-
```
288
+
```bash
289
+
func new --name sendMessage --template "Http trigger"
290
+
```
291
291
292
292
1. To configure bindings for the function, replace the content of _sendMessage/function.json_ with the following code:
0 commit comments