Skip to content

Commit c0c0b8d

Browse files
authored
indent update
1 parent 069c41b commit c0c0b8d

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

articles/azure-web-pubsub/socket-io-serverless-overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ With the increasing adoption of serverless computing, we're introducing a new mo
2121
|Architecture|Use persistent connection for both servers and clients | Clients use persistent connections but servers use RESTful APIs and webhook event handlers in a stateless manner|
2222
|SDKs and Languages| Official JavaScript server SDKs together with [Extension library for Web PubSub for Socket.IO SDK](https://www.npmjs.com/package/@azure/web-pubsub-socket.io) is required; All compatible clients|No mandatory SDKs or languages. Use [Socket.IO Function binding](https://www.nuget.org/packages/Microsoft.Azure.WebJobs.Extensions.WebPubSubForSocketIO) to simplified integrate with Azure Function; All compatible clients|
2323
|Network Accessibility| The server doesn't need to expose network access as it proactively makes connection to the service|The server needs to expose network access to the service|
24-
|Feature supports|Most features are supported except some unsupported features: [Unsupported server APIs of Socket.IO](./socket-io-supported-server-apis.md)|See list of supported features: [Supported functionality and RESTful APIs](./socketio-serverless-protocol.md#supported-functionality-and-restful-apis)|
24+
|Feature supports|Most features are supported except some unsupported features: [Unsupported server APIs of Socket.IO](./socketio-supported-server-apis.md)|See list of supported features: [Supported functionality and RESTful APIs](./socket-io-serverless-protocol.md#supported-functionality-and-restful-apis)|
2525

2626
## Next steps
2727

articles/azure-web-pubsub/socket-io-serverless-tutorial-python.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -236,24 +236,24 @@ You should follow the steps to initiate a local Azure Function project.
236236
237237
The key part in the `index.html`:
238238
239-
```javascript
240-
async function init() {
241-
const negotiateResponse = await fetch(`/api/negotiate`);
242-
if (!negotiateResponse.ok) {
243-
console.log("Failed to negotiate, status code =", negotiateResponse.status);
244-
return;
245-
}
246-
const negotiateJson = await negotiateResponse.json();
247-
socket = io(negotiateJson.endpoint, {
248-
path: negotiateJson.path,
249-
query: { access_token: negotiateJson.token}
250-
});
251-
252-
socket.on('update', (index) => {
253-
updateIndexCore(index);
254-
});
239+
```javascript
240+
async function init() {
241+
const negotiateResponse = await fetch(`/api/negotiate`);
242+
if (!negotiateResponse.ok) {
243+
console.log("Failed to negotiate, status code =", negotiateResponse.status);
244+
return;
255245
}
256-
```
246+
const negotiateJson = await negotiateResponse.json();
247+
socket = io(negotiateJson.endpoint, {
248+
path: negotiateJson.path,
249+
query: { access_token: negotiateJson.token}
250+
});
251+
252+
socket.on('update', (index) => {
253+
updateIndexCore(index);
254+
});
255+
}
256+
```
257257
258258
It first negotiates with the Function App to get the Uri and the path to the service. And register a callback to update index.
259259

0 commit comments

Comments
 (0)