Copyright © 2018 Marc Worrell
Behaviours: gen_server.
Authors: Marc Worrell (marc@worrell.nl).
code_change/3 | |
connected/4 | |
disconnected/1 | |
disconnected/3 | Signal the will process that the session got disconnected from the client. |
handle_call/3 | |
handle_cast/2 | |
handle_info/2 | |
init/1 | |
reconnected/1 | |
set_user_context/2 | Set a new user context, needed after reauthentication. |
start_link/2 | |
stop/1 | Sync request to stop the will process. |
terminate/2 |
code_change(Vsn, State, Extra) -> any()
connected(Pid::pid(), Will::map() | undefined, SessionExpiry::non_neg_integer(), UserContext::term()) -> ok
disconnected(Pid::pid()) -> ok
disconnected(Pid::pid() | undefined, IsWill::boolean(), ExpiryInterval::non_neg_integer()) -> ok
Signal the will process that the session got disconnected from the client.
handle_call(Msg, From, State) -> any()
handle_cast(Msg, State) -> any()
handle_info(X1, State) -> any()
init(X1) -> any()
reconnected(Pid::pid()) -> ok
set_user_context(Pid::pid(), UserContext::term()) -> ok
Set a new user context, needed after reauthentication
start_link(Pool::atom(), SessionPid::pid()) -> {ok, pid()}
stop(Pid::pid() | undefined) -> ok
Sync request to stop the will process
terminate(Reason, State) -> any()
Generated by EDoc