files/en-us/web/api/serialport/getsignals/index.md
{{SecureContext_Header}}{{APIRef("Web Serial API")}}{{SeeCompatTable}}{{AvailableInWorkers("window_and_dedicated")}}
The SerialPort.getSignals() method of the {{domxref("SerialPort")}} interface returns a {{jsxref("Promise")}} that resolves with an object containing the current state of the port's control signals.
getSignals()
None.
Returns a {{jsxref("Promise")}} that resolves with an object containing the following members:
clearToSend
dataCarrierDetect
dataSetReady
ringIndicator
InvalidStateError {{domxref("DOMException")}}
NetworkError {{domxref("DOMException")}}
{{Specifications}}
{{Compat}}