loqui v0.4.2 Loqui.Server

Summary

Types

option()
option ::
  {:loqui_path, String.t} |
  {:transport_opts, [transport_option]} |
  {:handler_opts, Keyword.t} |
  {:transport, transport}
options()
options() :: [{:handler, module} | [option]]
path()
path() :: String.t
tcp_port()
tcp_port() :: 0..65535
transport()
transport() :: :ranch_tcp | :ranch_ssl
transport_option()
transport_option() :: :gen_tcp.option | :ranch.opt

Functions

start_link(port, path, handler, opts \\ [])
start_link(tcp_port, path, module, options) ::
  {:ok, pid} |
  {:error, any}
stop(listener_name)

See :ranch.stop_listener/1.