Skip to content

Commit aa81845

Browse files
authored
Update quickstart-serverless.md
1 parent 4075021 commit aa81845

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

articles/azure-web-pubsub/quickstart-serverless.md

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -66,20 +66,23 @@ In this tutorial, you learn how to:
6666
func init --worker-runtime dotnet
6767
```
6868

69-
2. *Install `Microsoft.Azure.WebJobs.Extensions.WebPubSub` function extension package.
70-
71-
> [!NOTE]
72-
> The step will be optional when [Extension bundles](../azure-functions/functions-bindings-register.md#extension-bundles) are supported.
73-
74-
a. Remove `extensionBundle` section in `host.json` to enable install specific extension package in next step. Or simply make host json as simple a below.
69+
2. Install `Microsoft.Azure.WebJobs.Extensions.WebPubSub`.
70+
71+
# [JavaScript](#tab/javascript)
72+
Update `host.json`'s extensionBundle to version _3.3.0_ or later to get Web PubSub support.
7573
```json
7674
{
77-
"version": "2.0"
75+
"version": "2.0",
76+
"extensionBundle": {
77+
"id": "Microsoft.Azure.Functions.ExtensionBundle",
78+
"version": "[3.3.*, 4.0.0)"
79+
}
7880
}
7981
```
80-
b. Run command to install specific function extension package.
82+
83+
# [C#](#tab/csharp)
8184
```bash
82-
func extensions install --package Microsoft.Azure.WebJobs.Extensions.WebPubSub --version 1.0.0
85+
dotnet add package Microsoft.Azure.WebJobs.Extensions.WebPubSub
8386
```
8487
8588
3. Create an `index` function to read and host a static web page for clients.
@@ -465,4 +468,4 @@ In this quickstart, you learned how to run a serverless chat application. Now, y
465468
> [Quick start: Create a simple chatroom with Azure Web PubSub](./tutorial-build-chat.md)
466469
467470
> [!div class="nextstepaction"]
468-
> [Explore more Azure Web PubSub samples](https://github.com/Azure/azure-webpubsub/tree/main/samples)
471+
> [Explore more Azure Web PubSub samples](https://github.com/Azure/azure-webpubsub/tree/main/samples)

0 commit comments

Comments
 (0)