# planning.runningSession

**Workspace Manager concept example** A working example of the core library. It can change without notice.

- **Module:** planning
- **Package:** libtmux
- **Language:** TypeScript
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-ts/blob/46cccfef2a546de55ce8b308249b8c76339089a0/packages/workspace/src/planning.ts#L99
- **Page:** https://libtmux.org/en/ts/latest/reference/planning-runningsession/

```
async function runningSession(
  server: Server,
  name: string,
  acquisition: { signal?: AbortLike } = {},
): Promise<Session | undefined>
```

The session this workspace names, on a server that may not be running yet.

Acquisition raises on an unreachable server rather than reading as empty,
which is the answer a caller asking what is there needs. Building from
nothing is the ordinary starting point here, though, and a socket with no
daemon behind it is holding this session in the way an empty server is: not
at all.

## Parameters

- `server` (`Server`)
- `name` (`string`)
- `acquisition` (`{ signal?: AbortLike }`)
  Default: `{}`.
