mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-11 10:47:24 +00:00
QFIX OnConnect
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
parent
6b3ec81f63
commit
dd47deb4f3
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user