B2G/Bluetooth/WebBluetooth-v2/BluetoothServerSocket
< B2G | Bluetooth | WebBluetooth-v2
Jump to navigation
Jump to search
- Under Construction *
Overview
BluetoothServerSocket is a listening socket which is used to listen incoming RFCOMM connection.
Interfaces
BluetoothServerSocket
[CheckPermissions="bluetoothSocket"] interface BluetoothServerSocket: EventTarget { [NewObject, Throws] Promise<BluetoothSocket> listen() readonly attribute DOMString serviceUuid; readonly attribute DOMString? serviceName; attribute EventHandler onaccept; // BluetoothSocket aClientSocket attribute EventHandler onclose; // DOMString aErrorMsg
[NewObject, Throws] Promise<void> close(); };