Re-work connection auth

This commit is contained in:
Jon Staab
2024-10-14 15:18:21 -07:00
parent e025a8de36
commit f841de2a50
10 changed files with 171 additions and 115 deletions
+1 -1
View File
@@ -291,7 +291,7 @@ const _executeSubscription = (sub: Subscription) => {
Promise.all(
executor.target.connections.map(async (connection: Connection) => {
if (authTimeout) {
await connection.ensureAuth({timeout: authTimeout})
await connection.auth.waitIfPending({timeout: authTimeout})
}
})
).then(() => {