mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-20 23:32:14 +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) => {
|
newOpt.onConnect = async (event, data) => {
|
||||||
// Any event is fine, it means server is alive.
|
// Any event is fine, it means server is alive.
|
||||||
clearTimeout(connectTO)
|
clearTimeout(connectTO)
|
||||||
|
await opt?.onConnect?.(event, data)
|
||||||
resolve()
|
resolve()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
const clientConnection = connect(url, upgradeHandler, tokenPayload.workspace, tokenPayload.email, opt)
|
const clientConnection = connect(url, upgradeHandler, tokenPayload.workspace, tokenPayload.email, newOpt)
|
||||||
if (connectPromise !== undefined) {
|
if (connectPromise !== undefined) {
|
||||||
await connectPromise
|
await connectPromise
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user