mirror of
https://github.com/suitenumerique/meet.git
synced 2026-08-16 05:28:53 +00:00
bd3a26a2af
Capture selected ICE candidates for both subscriber and publisher peer connections. This enables correlation between survey feedback and connectivity setup, helping identify problematic network configurations.
24 lines
495 B
TypeScript
24 lines
495 B
TypeScript
import { proxy } from 'valtio'
|
|
|
|
export type CandidateInfo = {
|
|
type: string
|
|
address: string
|
|
protocol: string
|
|
}
|
|
|
|
type State = {
|
|
isIdleDisconnectModalOpen: boolean
|
|
publisher: CandidateInfo | null
|
|
publisherChangesCount: number
|
|
subscriber: CandidateInfo | null
|
|
subscriberChangesCount: number
|
|
}
|
|
|
|
export const connectionObserverStore = proxy<State>({
|
|
isIdleDisconnectModalOpen: false,
|
|
publisher: null,
|
|
publisherChangesCount: 0,
|
|
subscriber: null,
|
|
subscriberChangesCount: 0,
|
|
})
|