Check if a camera is available and authorized.
Check if a microphone is available and authorized.
Check if the browser reports network connectivity.
Check if the signaling server is reachable.
Check if a speaker/audio output device is available.
Check if the TURN relay endpoint is reachable.
Run all diagnostic checks and return a full report.
Test server connectivity: room API, WebSocket, SSE, and TURN credentials.
Probe ICE connectivity (STUN/TURN) by gathering candidates with a real peer connection.
OptionalonCandidateLog: (candidate: string) => voidValidate that a server host is reachable by requesting a room ID.
Pre-flight diagnostics utility. Checks device capabilities (camera, mic, speaker) and server connectivity (signaling, TURN) before joining a call.