# planning.runningSession

- **Module:** planning
- **Package:** @libtmux/libtmux
- **Language:** TypeScript
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-ts/blob/2cb93308200da38a26b59876618116850f110607/packages/workspace/src/planning.ts#L98
- **Page:** https://libtmux.org/reference/ts/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.
