Fix disconnect in several js examples

This commit is contained in:
mDuo13
2023-09-07 16:01:57 -07:00
parent 98e95a9629
commit dce8ced522
5 changed files with 8 additions and 8 deletions

View File

@@ -11,7 +11,7 @@ async function main() {
// ... custom code goes here
// Disconnect when done (If you omit this, Node.js won't end the process)
client.disconnect()
await client.disconnect()
}
main()

View File

@@ -32,7 +32,7 @@ async function main() {
})
// Disconnect when done so Node.js can end the process
client.disconnect()
await client.disconnect()
}
// call the async function