---
title: "compatibilityWith(_:)"
framework: realitykit
role: symbol
role_heading: Instance Method
path: "realitykit/networkcompatibilitytoken/compatibilitywith(_:)"
---

# compatibilityWith(_:)

Compares network compatibility tokens between the local device and another device.

## Declaration

```swift
final func compatibilityWith(_ otherToken: NetworkCompatibilityToken) -> NetworkCompatibilityToken.Compatibility
```

## Parameters

- `otherToken`: The token for the remote client against which the local device checks compatibility

## Return Value

Return Value Returns NetworkCompatibilityToken.Compatibility.compatible if the local client and the remote client represented by otherToken can be synced. Any other result indicates that the two devices are incompatible and you shouldn’t proceed with the connection.
