---
title: BluetoothRemoteGATTServer.connected
slug: Web/API/BluetoothRemoteGATTServer/connected
tags:
  - API
  - Bluetooth
  - BluetoothRemoteGATTServer
  - Experimental
  - Property
  - Reference
  - Web Bluetooth API
browser-compat: api.BluetoothRemoteGATTServer.connected
---
{{SeeCompatTable}}

The **`BluetoothRemoteGATTServer.connected`** read-only
property returns a boolean value that returns true while this script execution
environment is connected to `this.device`. It can be false while the user
agent is physically connected.

## Syntax

```js
var connected = BluetoothRemoteGATTServer.connected
```

## Specifications

{{Specifications}}

## Browser compatibility

{{Compat}}

{{APIRef("Web Bluetooth")}}
