Skip to content

Commit a50df8f

Browse files
authored
rename section name
1 parent 78666f1 commit a50df8f

1 file changed

Lines changed: 8 additions & 12 deletions

File tree

articles/azure-web-pubsub/tutorial-serverless-iot.md

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ In this tutorial, you learn how to:
2222
2323
## Prerequisites
2424

25-
# [JavaScript](#tab/javascript)
26-
2725
* A code editor, such as [Visual Studio Code](https://code.visualstudio.com/)
2826

2927
* [Node.js](https://nodejs.org/en/download/), version 18.x or above.
@@ -34,8 +32,6 @@ In this tutorial, you learn how to:
3432

3533
* The [Azure CLI](/cli/azure) to manage Azure resources.
3634

37-
---
38-
3935
[!INCLUDE [quickstarts-free-trial-note](../../includes/quickstarts-free-trial-note.md)]
4036

4137
## Create an IoT hub
@@ -52,13 +48,13 @@ If you already have a Web PubSub instance in your Azure subscription, you can sk
5248

5349
1. Create an empty folder for the project, and then run the following command in the new folder.
5450

55-
# [JavaScript-V4](#tab/javascript_v4)
51+
# [JavaScript Model v4](#tab/javascript_v4)
5652
```bash
5753
func init --worker-runtime javascript --model V4
5854
```
5955
---
6056

61-
# [JavaScript-V3](#tab/javascript)
57+
# [JavaScript Model v3](#tab/javascript)
6258
```bash
6359
func init --worker-runtime javascript --model V3
6460
```
@@ -70,7 +66,7 @@ If you already have a Web PubSub instance in your Azure subscription, you can sk
7066
func new -n index -t HttpTrigger
7167
```
7268

73-
# [JavaScript-V4](#tab/javascript_v4)
69+
# [JavaScript Model v4](#tab/javascript_v4)
7470
Update `src/functions/index.js` with following code, which serves the HTML content as a static site.
7571
```js
7672
const { app } = require('@azure/functions');
@@ -100,7 +96,7 @@ If you already have a Web PubSub instance in your Azure subscription, you can sk
10096
---
10197
10298
103-
# [JavaScript-V3](#tab/javascript)
99+
# [JavaScript Model v3](#tab/javascript)
104100
Update `index/index.js` with following code, which serves the HTML content as a static site.
105101
```js
106102
var fs = require("fs");
@@ -331,7 +327,7 @@ If you already have a Web PubSub instance in your Azure subscription, you can sk
331327
func new -n negotiate -t HttpTrigger
332328
```
333329
334-
# [Javascript-V4](#tab/javascript_v4)
330+
# [JavaScript Model v4](#tab/javascript_v4)
335331
Update `src/functions/negotiate.js` to use [`WebPubSubConnection`](reference-functions-bindings.md#input-binding) that contains the generated token.
336332
```js
337333
const { app, input } = require('@azure/functions');
@@ -353,7 +349,7 @@ If you already have a Web PubSub instance in your Azure subscription, you can sk
353349
```
354350
---
355351
356-
# [JavaScript-V3](#tab/javascript)
352+
# [JavaScript Model v3](#tab/javascript)
357353
- Update `negotiate/function.json` to include an input binding [`WebPubSubConnection`](reference-functions-bindings.md#input-binding), with the following json code.
358354
```json
359355
{
@@ -393,7 +389,7 @@ If you already have a Web PubSub instance in your Azure subscription, you can sk
393389
func new --template "Azure Event Hub trigger" --name messagehandler
394390
```
395391
396-
# [Javascript-V4](#tab/javascript_v4)
392+
# [JavaScript Model v4](#tab/javascript_v4)
397393
Update `src/functions/messagehandler.js` to add [Web PubSub output binding](reference-functions-bindings.md#output-binding) with the following json code. We use variable `%hubName%` as the hub name for both IoT eventHubName and Web PubSub hub.
398394
399395
```js
@@ -440,7 +436,7 @@ If you already have a Web PubSub instance in your Azure subscription, you can sk
440436
```
441437
---
442438
443-
# [JavaScript](#tab/javascript)
439+
# [JavaScript Model v3](#tab/javascript)
444440
- Update _messagehandler/function.json_ to add [Web PubSub output binding](reference-functions-bindings.md#output-binding) with the following json code. We use variable `%hubName%` as the hub name for both IoT eventHubName and Web PubSub hub.
445441
```json
446442
{

0 commit comments

Comments
 (0)