# server.refuseWithoutLocalTmux

- **Module:** server
- **Package:** @libtmux/libtmux
- **Language:** TypeScript
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-ts/blob/2cb93308200da38a26b59876618116850f110607/packages/libtmux/src/server.ts#L166
- **Page:** https://libtmux.org/reference/ts/server-refusewithoutlocaltmux/

```
server.refuseWithoutLocalTmux(runtime: : RuntimeContext, method: : string) -> void
```

Refuse a call that can only reach a tmux this process can spawn.

Control mode is a `tmux -C attach` child of this process. An engine exists
because tmux is somewhere this process cannot spawn it, so spawning anyway
would attach to whatever local tmux happens to be there — and every command
afterwards would succeed against the wrong server.
