Take a snapshot of the local connection. Never throws or rejects; never resolves to anything containing a device id or media, and carries device labels only when includeDeviceLabels is set.
includeDeviceLabels
The connected client (a Client from @hiyve/rtc-client, or any object exposing the same transports and producers). null gives the empty snapshot.
Client
@hiyve/rtc-client
null
See CollectConnectionDiagnosticsOptions.
The snapshot.
import { collectConnectionDiagnostics } from '@hiyve/core';const snapshot = await collectConnectionDiagnostics(store.getClient());if (snapshot.micPermission === 'denied') showHowToAllowMicrophone(); Copy
import { collectConnectionDiagnostics } from '@hiyve/core';const snapshot = await collectConnectionDiagnostics(store.getClient());if (snapshot.micPermission === 'denied') showHowToAllowMicrophone();
Take a snapshot of the local connection. Never throws or rejects; never resolves to anything containing a device id or media, and carries device labels only when
includeDeviceLabelsis set.