# `Slither.Bridge.ViewRegistry`
[🔗](https://github.com/nshkrdotcom/slither/blob/v0.1.0/lib/slither/bridge/view_registry.ex#L1)

ETS-backed registry mapping session IDs to registered view callback IDs.

Tracks which SnakeBridge callbacks belong to which Slither session
so they can be cleaned up when a session ends.

# `child_spec`

Returns a specification to start this module under a supervisor.

See `Supervisor`.

# `clear_session`

```elixir
@spec clear_session(binary() | :global) :: :ok
```

Remove all registrations for a session.

# `get_session_callbacks`

```elixir
@spec get_session_callbacks(binary() | :global) :: [{atom(), binary()}]
```

Get all callback registrations for a session.

# `register`

```elixir
@spec register(binary() | :global, atom(), binary()) :: :ok
```

Register a view callback for a session (or :global).

# `start_link`

---

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