MQTT v0.2.0 MQTT.Server behaviour
A behaviour module for implementing an MQTT “broker”.
Summary
Types
The init parameters, received from the newly connected client
The reason for rejecting a connection
Types
init_stop_reason()
init_stop_reason :: :identifier_rejected | :server_unavailable | :bad_username_or_password | :not_authorized | 6..255
The reason for rejecting a connection
Functions
Callbacks
code_change(old_vsn, state, extra)
code_change(old_vsn, state :: any, extra :: term) :: {:ok, new_state :: any} | {:error, reason :: term} when old_vsn: term | {:down, term}
init(args, params)
init(args :: any, params :: init_parameters) :: {:ok, state} | {:stop, reason :: init_stop_reason} when state: any