# `GSNode checkConnection`

*Instance Method*

Automatically sets the connection for the node depending on the angle of the incoming and outgoing path segments.

## Declaration

```swift
func checkConnection()
```

```objc
- (void) checkConnection;
```

```python
checkConnection()
```

## See Also

### Connection

- [`GSNode.GSNodeConnection`](/Core/GlyphsCore/GSNode/GSNodeConnection) — The transition of a path through an on-curve node.
- [`GSNode.connection`](/Core/GlyphsCore/GSNode/connection) — The connection between the incoming and outgoing path segments.
- [`GSNode.isSmooth`](/Core/GlyphsCore/GSNode/isSmooth) — Convenience to simplify checking the connection.
- [`GSNode toggleConnection:`](/Core/GlyphsCore/GSNode/toggleConnection:) — Toggles the connection type between [`GSNodeConnection.GSNodeConnectionSharp`](/Core/GlyphsCore/GSNode/GSNodeConnection/GSNodeConnectionSharp) and [`GSNodeConnection.GSNodeConnectionSmooth`](/Core/GlyphsCore/GSNode/GSNodeConnection/GSNodeConnectionSmooth).
- [`GSNode toggleConnection:superSmooth:`](/Core/GlyphsCore/GSNode/toggleConnection:superSmooth:) — Toggles the connection type between [`GSNodeConnection.GSNodeConnectionSharp`](/Core/GlyphsCore/GSNode/GSNodeConnection/GSNodeConnectionSharp) and [`GSNodeConnection.GSNodeConnectionSmooth`](/Core/GlyphsCore/GSNode/GSNodeConnection/GSNodeConnectionSmooth)/[`GSNodeConnection.GSNodeConnectionSuperSmooth`](/Core/GlyphsCore/GSNode/GSNodeConnection/GSNodeConnectionSuperSmooth).

