title | short-title | slug | page-type | status | browser-compat | |
---|---|---|---|---|---|---|
SerialPort: close() method |
close() |
Web/API/SerialPort/close |
web-api-instance-method |
|
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.
close()
None.
A {{jsxref("Promise")}}.
{{Specifications}}
{{Compat}}