View Source mqtt_sessions_process (mqtt_sessions v2.4.0)
Link to this section Summary
Link to this section Functions
-spec fetch_queue(pid()) -> {ok, [map() | binary()]}.
-spec get_transport(pid()) -> {ok, mqtt_sessions:transport()} | {error, notransport | noproc}.
-spec get_user_context(pid()) -> {ok, term()} | {error, noproc}.
-spec incoming_connect(pid(), mqtt_packet_map:mqtt_packet(), mqtt_sessions:msg_options()) -> ok.
-spec incoming_data(pid(), binary()) -> ok | {error, wrong_connection | mqtt_packet_map:decode_error()}.
-spec kill(pid()) -> ok.
-spec set_user_context(pid(), term()) -> ok | {error, noproc}.
-spec start_link(Pool :: atom(), ClientId :: binary(), mqtt_sessions:session_options()) -> {ok, pid()}.
-spec update_user_context(pid(), fun((term()) -> term())) -> ok | {error, noproc}.