Skip to content

Commit 69d4668

Browse files
authored
Update socketio-migrate-from-self-hosted.md
1 parent 784e11b commit 69d4668

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

articles/azure-web-pubsub/socketio-migrate-from-self-hosted.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ Locate `index.js` in the server-side code.
4545
connectionString: process.argv[2]
4646
});
4747
```
48+
>[!IMPORTANT]
49+
> `useAzureSocketIO` is an asynchronous method and it does initialization steps to connect to Web PubSub. You can `await useAzureSocketIO(...)` or use `useAzureSocketIO(...).then(...)` to make sure your app server starts to serve requests after the initialization succeeds.
4850
4951
4. If you use the following server APIs, add `async` before using them as they're asynchronous with Web PubSub for Socket.IO.
5052
- [server.socketsJoin](https://socket.io/docs/v4/server-api/#serversocketsjoinrooms)

0 commit comments

Comments
 (0)