# `BB.TUI.Rpc`
[🔗](https://github.com/mcass19/bb_tui/blob/v0.3.0/lib/bb/tui/rpc.ex#L1)

Thin wrapper around `:rpc.call/4` and `Node.spawn_link/2`.

This module exists purely so the cross-node code paths in
`BB.TUI.Robot` can be exercised in tests by mocking a normal Elixir
module — `:rpc` itself is a sticky kernel module and cannot be
swapped out at runtime.

In production this is a transparent passthrough; in tests Mimic
replaces it.

# `call`

```elixir
@spec call(node(), module(), atom(), [term()]) :: term()
```

Synchronous remote function call. Mirrors `:rpc.call/4`.

# `spawn_link`

```elixir
@spec spawn_link(node(), (-&gt; any())) :: pid()
```

Spawns a linked process on a remote node. Mirrors `Node.spawn_link/2`.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
