<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "IOBluetooth",
  "identifier" : "/documentation/IOBluetooth/OBEXSession/hasOpenTransportConnection()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "IOBluetooth"
    ],
    "preciseIdentifier" : "c:objc(cs)OBEXSession(im)hasOpenTransportConnection"
  },
  "title" : "hasOpenTransportConnection()"
}
-->

# hasOpenTransportConnection()

You must override this - it will be called periodically to determine if a transport connection is open or not.

```
func hasOpenTransportConnection() -> Bool
```

## Return Value

Return whether or not the transport connection is still open.

## Discussion

Tranport subclasses must override this! When called you simply return if the transport connection is still open or not.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)