diff --git a/src/client/pages/HostPage.tsx b/src/client/pages/HostPage.tsx index 235afab..f916f28 100644 --- a/src/client/pages/HostPage.tsx +++ b/src/client/pages/HostPage.tsx @@ -213,9 +213,16 @@ const AUDIO_QUALITY_CAPTIONS: Record = { "very-high": "host.advanced.audio.veryHigh", }; -const PEER_STATE_CAPTIONS: Record = { +type PresentedPeerState = + | RTCPeerConnectionState + | "routing" + | "waiting" + | "reconnecting"; + +const PEER_STATE_CAPTIONS: Record = { new: "state.peer.new", connecting: "state.peer.connecting", + connected: "state.peer.connected", routing: "state.peer.routing", waiting: "state.peer.waiting", reconnecting: "state.peer.reconnecting",