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
In this article, you'll use Azure SignalR Service, Azure Functions, and JavaScript to build a serverless application to broadcast messages to clients.
15
15
16
-
> [!NOTE]
17
-
> You can get all code used in the article from [GitHub](https://github.com/aspnet/AzureSignalR-samples/tree/main/samples/QuickStartServerless/javascript).
18
-
19
16
## Prerequisites
20
17
21
18
This quickstart can be run on macOS, Windows, or Linux.
@@ -24,8 +21,8 @@ This quickstart can be run on macOS, Windows, or Linux.
24
21
| --- | --- |
25
22
| An Azure subscription |If you don't have a subscription, create an [Azure free account](https://azure.microsoft.com/free/?WT.mc_id=A261C142F)|
26
23
| A code editor | You'll need a code editor such as [Visual Studio Code](https://code.visualstudio.com/). |
27
-
|[Azure Functions Core Tools](https://github.com/Azure/azure-functions-core-tools#installing)| Requires version 2.7.1505 or higher to run Python Azure Function apps locally.|
28
-
|[Node.js](https://nodejs.org/en/download/)| See supported node.js versions in the [Azure Functions JavaScript developer guide](../azure-functions/functions-reference-node.md#node-version).|
24
+
|[Azure Functions Core Tools](https://github.com/Azure/azure-functions-core-tools#installing)| Requires version 4.0.5611 or higher to run Node.js v4 programming model.|
25
+
|[Node.js LTS](https://nodejs.org/en/download/)| See supported node.js versions in the [Azure Functions JavaScript developer guide](../azure-functions/functions-reference-node.md#node-version).|
29
26
|[Azurite](../storage/common/storage-use-azurite.md)| SignalR binding needs Azure Storage. You can use a local storage emulator when a function is running locally. |
30
27
|[Azure CLI](/cli/azure/install-azure-cli)| Optionally, you can use the Azure CLI to create an Azure SignalR Service instance. |
31
28
@@ -38,12 +35,12 @@ This quickstart can be run on macOS, Windows, or Linux.
38
35
Make sure you have Azure Functions Core Tools installed.
39
36
40
37
1. Open a command line.
41
-
1. Create project directory and then change to it.
38
+
1. Create project directory and then change into it.
42
39
1. Run the Azure Functions `func init` command to initialize a new project.
### Add the SignalR Service connection string to the function app settings
271
104
272
105
Azure Functions requires a storage account to work. You can install and run the [Azure Storage Emulator](../storage/common/storage-use-azurite.md). **Or** you can update the setting to use your real storage account with the following command:
You can get all code used in the article from [GitHub](https://github.com/aspnet/AzureSignalR-samples/tree/main/samples/QuickStartServerless/javascript/v4-programming-model).
150
+
313
151
## Next steps
314
152
315
153
In this quickstart, you built and ran a real-time serverless application in localhost. Next, learn more about how to bi-directional communicating between clients and Azure Function with SignalR Service.
0 commit comments