# server.Server.snapshot

- **Module:** server.Server
- **Package:** @libtmux/libtmux
- **Language:** TypeScript
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-ts/blob/2cb93308200da38a26b59876618116850f110607/packages/libtmux/src/server.ts#L416
- **Page:** https://libtmux.org/reference/ts/server-server-snapshot/

```
server.Server.snapshot(options: : SnapshotOptions = {}) -> Promise<ServerSnapshot>
```

Acquire an immutable view of the server at this instant.

Acquisition is the only step that talks to tmux. Everything reachable from
the returned value resolves locally, so traversal and filtering issue no
commands and an earlier snapshot keeps reporting its own instant.

## Example

```ts
const now = await server.snapshot();
now.windows.count();
```
