> For the complete documentation index, see [llms.txt](https://kinematicsoup.gitbook.io/reactor/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kinematicsoup.gitbook.io/reactor/api-reference/ks.reactor.client/ks.reactor.client.ksconnection/ks.reactor.client.ksconnection.connecthandler.md).

# Delegate ksConnection.ConnectHandler

Namespace: [KS.Reactor.Client](/reactor/api-reference/ks.reactor.client.md)\
Assembly: KSUnity.dll

Handler called when connection attempts complete.

```csharp
public delegate void ksConnection.ConnectHandler(ksConnection connection, SocketError error, object asyncState = null)
```

#### Parameters

`connection` [ksConnection](/reactor/api-reference/ks.reactor.client/ks.reactor.client.ksconnection.md)

connection that is calling the handler

`error` [SocketError](https://learn.microsoft.com/dotnet/api/system.net.sockets.socketerror)

connection result (If the connection was successful this value will be SocketError.Success)

`asyncState` [object](https://learn.microsoft.com/dotnet/api/system.object)

asynchronous state
