---
title: disconnect()
framework: gamekit
role: symbol
role_heading: Instance Method
path: gamekit/gkmatch/disconnect()
---

# disconnect()

Disconnects the local player from the match.

## Declaration

```swift
func disconnect()
```

## Discussion

Discussion Call this method before ending a match.

## See Also

### Finishing the match

- [rematch(completionHandler:)](gamekit/gkmatch/rematch(completionhandler:).md)
