B2G/Bluetooth/WebBluetooth-v2/BluetoothServerSocket: Difference between revisions
< B2G | Bluetooth | WebBluetooth-v2
Jump to navigation
Jump to search
(Add webidl for BluetoothServerSocket) |
(→Overview: Overview of BluetoothServerSocket) |
||
Line 2: | Line 2: | ||
== Overview == | == Overview == | ||
BluetoothServerSocket is a listening socket which is used to listen incoming RFCOMM connection. | |||
== Interfaces == | == Interfaces == |
Revision as of 06:57, 5 March 2015
- 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(); };