loqui v0.4.5 Loqui.Server View Source

Link to this section Summary

Link to this section Types

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

Link to this section Functions

Link to this function start_link(port, path, handler, opts \\ []) View Source
start_link(tcp_port(), path(), module(), options()) ::
  {:ok, pid()} | {:error, any()}