ankh v0.3.1 Ankh.Connection.Receiver

Summary

Functions

Returns the last stream id for the connection

Returns the existing stream for the id or returns it

Updates the stream for the connection

Types

receiver()
receiver() :: GenServer.server

Functions

last_stream_id(receiver)
last_stream_id(pid) :: {:ok, Integer.t}

Returns the last stream id for the connection.

start_link(args, options \\ [])
start_link([sender: Ankh.Connection.connection, receiver: pid | nil, mode: :stream | :full], GenServer.options) :: GenServer.on_start
stream(receiver, id)
stream(pid, Integer.t) :: {:ok, Ankh.Stream.t}

Returns the existing stream for the id or returns it.

update_stream(receiver, id, stream)
update_stream(pid, Integer.t, Ankh.Stream) :: :ok

Updates the stream for the connection