Back to Content

USBDevice: open() method

files/en-us/web/api/usbdevice/open/index.md

latest416 B
Original Source

{{APIRef("WebUSB API")}}{{SeeCompatTable}}{{SecureContext_Header}}{{AvailableInWorkers}}

The open() method of the {{domxref("USBDevice")}} interface returns a {{jsxref("promise")}} that resolves when a device session has started.

Syntax

js-nolint
open()

Parameters

None.

Return value

A {{jsxref("promise")}}.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}