Skip to content

probe-web / @probe-web/devices / onDevicesChanged

Function: onDevicesChanged()

ts
function onDevicesChanged(cb): () => void;

Defined in: index.ts:95

Subscribe to plug/unplug of granted devices. Returns an unsubscribe function (a no-op without WebUSB).

Parameters

ParameterType
cb(event, device) => void

Returns

() => void