From 52b21efee759593c356c60052c02e53c20f4417f Mon Sep 17 00:00:00 2001 From: Andrey Sobolev Date: Sun, 8 Dec 2024 13:10:23 +0700 Subject: [PATCH] QFIX OnConnect (#7297) Signed-off-by: Andrey Sobolev --- plugins/client-resources/src/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/client-resources/src/index.ts b/plugins/client-resources/src/index.ts index 4a281080ee..d98ad98f12 100644 --- a/plugins/client-resources/src/index.ts +++ b/plugins/client-resources/src/index.ts @@ -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 }