Skip to content

Commit 23bff2d

Browse files
Merge pull request #292447 from vicancy/patch-20
Fix code issues in the doc
2 parents 13a26eb + 0e3bda1 commit 23bff2d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -793,7 +793,7 @@ Use the following commands to create these items.
793793
794794
[!INCLUDE [Connection string security comment](includes/web-pubsub-connection-string-security-comment.md)]
795795
796-
First, find your Web PubSub resource from **Azure Portal** and copy out the connection string under **Keys**. Then, navigate to Function App settings in **Azure Portal** -> **Settings** -> **Configuration**. And add a new item under **Application settings**, with name equals `WebPubSubConnectionString` and value is your Web PubSub resource connection string.
796+
First, find your Web PubSub resource from **Azure Portal** and copy out the connection string under **Keys**. Then, navigate to Function App settings in **Azure Portal** -> **Settings** -> **Environment variables**. And add a new item under **App settings**, with name equals `WebPubSubConnectionString` and value is your Web PubSub resource connection string.
797797
798798
## Configure the Web PubSub service `Event Handler`
799799

articles/azure-web-pubsub/quickstarts-push-messages-from-server.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ python -m venv env
180180
source ./env/bin/activ
181181

182182
pip install azure-messaging-webpubsubservice
183-
pip install websock
183+
pip install websockets
184184
```
185185

186186
#### Use the WebSocket API to connect to your Web PubSub resource. Create a `subscribe.py` file with the following code
@@ -213,8 +213,8 @@ if __name__ == '__main__':
213213

214214
try:
215215
asyncio.get_event_loop().run_until_complete(connect(token['url']))
216-
except KeyboardInterrupt:
217-
pass
216+
except KeyboardInterrupt:
217+
pass
218218

219219
```
220220

0 commit comments

Comments
 (0)