Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/qfix-onconnect' into staging
Browse files Browse the repository at this point in the history
Signed-off-by: Andrey Sobolev <[email protected]>
  • Loading branch information
haiodo committed Dec 8, 2024
2 parents 5ad1d5b + dd47deb commit 9ade3ba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/client-resources/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,12 @@ export default async () => {
newOpt.onConnect = async (event, data) => {
// Any event is fine, it means server is alive.
clearTimeout(connectTO)
await opt?.onConnect?.(event, data)
resolve()
}
})
}
const clientConnection = connect(url, upgradeHandler, tokenPayload.workspace, tokenPayload.email, opt)
const clientConnection = connect(url, upgradeHandler, tokenPayload.workspace, tokenPayload.email, newOpt)
if (connectPromise !== undefined) {
await connectPromise
}
Expand Down

0 comments on commit 9ade3ba

Please sign in to comment.