Re: [web-bluetooth] TypeError: server.getPrimaryService is not a function

The second arrow function is not returning a promise.

Instead of:
```js
return device.gatt.connect;
```
it should be:
```js
return device.gatt.connect();
```

-- 
GitHub Notification of comment by g-ortuno
Please view or discuss this issue at https://github.com/WebBluetoothCG/web-bluetooth/issues/369#issuecomment-315650833 using your GitHub account

Received on Monday, 17 July 2017 00:56:27 UTC