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-web-pubsub/tutorial-develop-with-visual-studio-code.md
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,17 +1,17 @@
1
1
---
2
2
title: 'Visual Studio Code Extension for Azure Web PubSub'
3
-
description: Develope with Visual Studio Code Extension
3
+
description: Develop with Visual Studio Code Extension
4
4
author: xingsy97
5
5
ms.author: siyuanxing
6
6
ms.service: azure-web-pubsub
7
7
ms.topic: reference
8
8
ms.date: 04/28/2024
9
9
---
10
10
11
-
# Quickstart: Develope with Visual Studio Code Extension
11
+
# Quickstart: Develop with Visual Studio Code Extension
12
12
Azure Web PubSub helps developer build real-time messaging web applications using WebSockets and the publish-subscribe pattern easily.
13
13
14
-
In this tutorial, you'll create a simple application using Azure Web PubSub with the help of Visual Studio Code.
14
+
In this tutorial, you create a chat application using Azure Web PubSub with the help of Visual Studio Code.
15
15
16
16
## Prerequisites
17
17
@@ -50,9 +50,9 @@ In this tutorial, you'll create a simple application using Azure Web PubSub with
50
50
51
51
1. Once signed in, return to Visual Studio Code.
52
52
53
-
## Create a Azure Web PubSub Service
53
+
## Create an Azure Web PubSub Service
54
54
55
-
The Azure Web PubSub extension for Visual Studio Code enables users to quickly create, manage and utilize Azure Web PubSub Service and its developer tools such as [Azure Web PubSub Local Tunnel Tool](https://www.npmjs.com/package/@azure/web-pubsub-tunnel-tool).
55
+
The Azure Web PubSub extension for Visual Studio Code enables users to quickly create, manage, and utilize Azure Web PubSub Service and its developer tools such as [Azure Web PubSub Local Tunnel Tool](https://www.npmjs.com/package/@azure/web-pubsub-tunnel-tool).
56
56
In this scenario, you create a new Azure Web Pubsub Service resource and configure it to host your application. After installing the Web PubSub extension, you can access its features under the Azure control panel in Visual Studio Code.
57
57
58
58
1. Select <kbd>F1</kbd> to open the command palette and run the **Azure Web PubSub: Create Web PubSub Service** command.
@@ -77,30 +77,30 @@ In this scenario, you create a new Azure Web Pubsub Service resource and configu
77
77
78
78
> If your activity bar is hidden, you won't be able to access the extension. Show the Activity Bar by clicking View > Appearance > Show Activity Bar
79
79
80
-
1. In the resource tree, find the Azure Web Pubsub resource **my-wps** you created and click it to expand.
80
+
1. In the resource tree, find the Azure Web Pubsub resource **my-wps** you created and click it to expand
81
81
82
82
1. Right click the item **Hub Settings** and then select **Create Hub Setting**
83
83
84
-
1. Input *sample_chat* as the hub name and create the hub setting. It doesn't matter whether to create extra event handlers or not. Wait for the progress notification shown as finished.
84
+
1. Input *sample_chat* as the hub name and create the hub setting. It doesn't matter whether to create extra event handlers or not. Wait for the progress notification shown as finished
85
85
86
-
1. Below the item **Hub Settings**, a new subitem *Hub sample_chat* shall appear. Right click on the new item and then choose "Attach Local Tunnel".
86
+
1. Below the item **Hub Settings**, a new subitem *Hub sample_chat* shall appear. Right click on the new item and then choose "Attach Local Tunnel"
87
87
88
-
1. A notification reminds you to create a tunnel-enabled event handler will pop up. Click **Yes** button. Then enter the following values as prompted by the extension.
88
+
1. A notification reminds you to create a tunnel-enabled event handler pops up. Click **Yes** button. Then enter the following values as prompted by the extension
89
89
90
90
| Prompt | Value |
91
91
|--|--|
92
92
| Select User Events | Select **All** |
93
93
| Select System Events | Select **connected** |
94
94
| Input Server Port | Enter **8080** |
95
95
96
-
1. The exetension will created a new terminal to run the Local Tunnel Tool and a notification reminds you to open Local Tunnel Portal will show up. Click the button "Yes" or open "http://localhost:4000" in web browser manually to view the portal.
96
+
1. The extension will created a new terminal to run the Local Tunnel Tool and a notification reminds you to open Local Tunnel Portal shows up. Click the button "Yes" or open "http://localhost:4000" in web browser manually to view the portal.
97
97
98
98
## Run the server application
99
99
1. Ensure your working directory is `azure-webpubsub/samples/javascript/chatapp/nativeapi`
100
100
101
-
1. Run `npm install` to install the dependencies.
101
+
1. Run `npm install`
102
102
103
-
1. Open **Azure** icon in the Activity Bar, find the Azure Web PubSub resource **my-wps**. Right click on the resource item and select **Copy Connection String**. The connection string will be copied to your clipboard.
103
+
1. Open **Azure** icon in the Activity Bar and find the Azure Web PubSub resource **my-wps**. Then right click on the resource item and select **Copy Connection String**. The connection string is copied to your clipboard
104
104
105
105
1. Run the server application `node server.js "<paste-your-connection-string-here>"`
0 commit comments