Skip to content

Commit

Permalink
QFIX OnConnect (#7297)
Browse files Browse the repository at this point in the history
Signed-off-by: Andrey Sobolev <[email protected]>
  • Loading branch information
haiodo authored Dec 8, 2024
1 parent 46d11af commit 52b21ef
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 52b21ef

Please sign in to comment.