Wampex.Client (wampex_client v0.1.0)
Documentation for Wampex.
Link to this section Summary
Functions
Returns a specification to start this module under a supervisor.
Callback implementation for Supervisor.init/1
.
Link to this section Functions
Link to this function
add(name, pid)
Specs
Link to this function
call(name, call, timeout \\ 5000)
Specs
Link to this function
callee_registry_name(name)
Specs
Link to this function
cast(name, request)
Specs
cast(name :: module(), Wampex.message()) :: :ok
Link to this function
child_spec(init_arg)
Returns a specification to start this module under a supervisor.
See Supervisor
.
Link to this function
dependent_registry_name(name)
Specs
Link to this function
error(name, error)
Specs
error(name :: module(), error :: Wampex.Roles.Peer.Error.t()) :: :ok
Link to this function
init(arg)
Specs
init({atom(), Wampex.Client.Session.t(), boolean()}) :: {:ok, {:supervisor.sup_flags(), [:supervisor.child_spec()]}} | :ignore
Callback implementation for Supervisor.init/1
.
Link to this function
publish(name, event)
Specs
publish(name :: module(), event :: Wampex.Roles.Publisher.Publish.t()) :: :ok
Link to this function
register(name, reg, timeout \\ 5000)
Specs
Link to this function
remove(name, pid)
Specs
Link to this function
session_name(name)
Specs
Link to this function
start_link(list)
Specs
Link to this function
subscribe(name, sub, timeout \\ 5000)
Specs
Link to this function
subscriber_registry_name(name)
Specs
Link to this function
sync(name, request, timeout \\ 5000)
Specs
sync(name :: module(), request :: Wampex.message(), timeout :: integer()) :: term()
Link to this function
yield(name, yield)
Specs
yield(name :: module(), yield :: Wampex.Roles.Callee.Yield.t()) :: :ok