WebIDLpedia

Serial interface

Definition

Web Serial API defines Serial



[Exposed=(DedicatedWorker, Window), SecureContext]
interface Serial : EventTarget {
  attribute EventHandler onconnect;
  attribute EventHandler ondisconnect;
  Promise<sequence<SerialPort>> getPorts();
  [Exposed=Window] Promise<SerialPort> requestPort(optional SerialPortRequestOptions options = {});
};

Methods and attributes that return objects implementing Serial

Referring IDL interfaces/dictionaries