# planning.runningSession

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

```
planning.runningSession(server: : Server, name: : string) -> 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.
