defmodule RtmpSession.Messages.Abort do @moduledoc """ Message used to notify the peer that if it is waiting for chunks to complete a message, then discard the partially received message """ @behaviour RtmpSession.RawMessage @type t :: %__MODULE__{} defstruct stream_id: nil def deserialize(data) do <> = data %__MODULE__{stream_id: stream_id} end def serialize(message = %__MODULE__{}) do {:ok, <>} end def get_default_chunk_stream_id(%__MODULE__{}), do: 2 end