mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 08:12:24 +00:00
fix: scope voice response parsing to its backend lifetime
This commit is contained in:
1 parent
1a1cbadf5b
commit
c488a18df1
3 files changed
+6
-3
No files matched your search
@@ -89,12 +89,13 @@ test('cancellation rejects late token and SDP bodies without promoting a stopped
|
||||
release = resolve;
|
||||
});
|
||||
const backend = createRealtimeBackend({
|
||||
signal: lifetime.signal,
|
||||
tokenTransport: async () => ({ ok: true, json: () => pending }),
|
||||
connectionTransport: async () => ({ ok: true, text: () => pending }),
|
||||
});
|
||||
const result =
|
||||
phase === 'token'
|
||||
? backend.requestToken({ signal: lifetime.signal })
|
||||
? backend.requestToken()
|
||||
: backend.negotiate({
|
||||
credential: { token: 'test' },
|
||||
offerSdp: 'offer',
|
||||
|
||||
Reference in new issue
Block a user