# LibTmux.FSharp.Server.connect

- **Module:** LibTmux.FSharp
- **Package:** LibTmux.FSharp
- **Language:** F#
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/cf34b255c896d19a97e7d7fabea58609c916012d/src/LibTmux.FSharp/Hierarchy.fsi#L24
- **Page:** https://libtmux.org/en/fsharp/latest/reference/libtmux-fsharp-server-connect/

```
val connect: cancellationToken: CancellationToken -> options: ServerConnectionOptions -> Task<LibTmux.Server>
```

Attaches to a server already listening on the socket the options name.

The core's <c>Server.ConnectAsync</c>; it never starts a server.

## Parameters

- `cancellationToken` (`CancellationToken`)
- `options` (`ServerConnectionOptions`)
