# `MobWebrtc.Peer`
[🔗](https://github.com/GenericJam/mob_webrtc/blob/main/lib/mob_webrtc/peer.ex#L1)

One peer connection: owns the engine's connection, forwards its events to
the owner as `{:mob_webrtc, peer, event}`, and keeps the counters
`MobWebrtc.status/0` reports.

The peer closes when its owner exits, and exits when the engine's connection
does. Started by `MobWebrtc.start_peer/1` under `MobWebrtc.PeerSupervisor`;
call it through `MobWebrtc`.

# `child_spec`

Returns a specification to start this module under a supervisor.

See `Supervisor`.

# `info`

```elixir
@spec info(pid()) :: map()
```

This peer's state as a plain map (see `MobWebrtc.status/0`).

---

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