# `ExLibSRT.Connection.Handler`
[🔗](https://github.com/membraneframework/ex_libsrt/blob/v0.2.1/lib/ex_libsrt/connection.ex#L9)

Handler behaviour for incoming connection messages.

# `connection_id`

```elixir
@type connection_id() :: non_neg_integer()
```

# `state`

```elixir
@type state() :: any()
```

# `stream_id`

```elixir
@type stream_id() :: String.t()
```

# `t`

```elixir
@type t() :: module() | struct()
```

# `handle_data`

```elixir
@callback handle_data(binary(), state()) :: {:ok, state()} | :stop
```

Invoked when a new payload arrives. 

# `handle_disconnected`

```elixir
@callback handle_disconnected(state()) :: :ok
```

Invoked when a connection gets disconnected .

# `init`

```elixir
@callback init(t()) :: state()
```

---

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