feat(trade): wait on colleague order until status is final

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-02 15:55:08 +03:30
co-authored by Cursor
parent 164bb267f1
commit 0d19412c96
6 changed files with 222 additions and 15 deletions
+10
View File
@@ -560,6 +560,16 @@ function bindStreamEvents(source: AuthPriceStream) {
}
})
source.addEventListener('colleague_order', (event) => {
try {
void import('@/composables/useColleagueOrderWait').then(({ emitColleagueOrderFromStream }) => {
emitColleagueOrderFromStream(JSON.parse(event.data))
})
} catch (error) {
console.warn('Colleague order SSE parse failed', error)
}
})
source.addEventListener('ping', () => {
touchStreamActivity()
})