API Reference late v0.2.0

Modules

Example

defmodule MyConnection do
  @behaviour Late

  @impl true
  def init(_args) do
    {:ok, %{from: nil}}
  end

  @impl true
  def handle_call({:something, query}, from, state) do
    {:noreply, stuff}
  end

  @impl true
  def handle_in({:text, text}, state) do
    {:reply, [frame], new_state}
  end
end