Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 640 Bytes

index.md

File metadata and controls

35 lines (23 loc) · 640 Bytes
title short-title slug page-type status browser-compat
SerialPort: close() method
close()
Web/API/SerialPort/close
web-api-instance-method
experimental
api.SerialPort.close

{{APIRef("Web Serial API")}}{{SecureContext_Header}}{{SeeCompatTable}}{{AvailableInWorkers("window_and_dedicated")}}

The SerialPort.close() method of the {{domxref("SerialPort")}} interface returns a {{jsxref("Promise")}} that resolves when the port closes.

Syntax

close()

Parameters

None.

Return value

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

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}