MQTT v0.2.2 MQTT.Server behaviour View Source
A behaviour module for implementing an MQTT “broker”.
Link to this section Summary
Types
The init parameters, received from the newly connected client
The reason for rejecting a connection
Link to this section Types
The init parameters, received from the newly connected client
Link to this type
init_stop_reason()
View Source
init_stop_reason() :: :identifier_rejected | :server_unavailable | :bad_username_or_password | :not_authorized | 6..255
The reason for rejecting a connection
Link to this section Functions
See :mqtt_server.enter_loop/3
.
See :mqtt_server.stop/1
.
See :mqtt_server.stop/3
.
Link to this section Callbacks
Link to this callback
code_change(old_vsn, state, extra)
View Source
code_change(old_vsn, state :: any(), extra :: term()) :: {:ok, new_state :: any()} | {:error, reason :: term()} when old_vsn: term() | {:down, term()}
Link to this callback
init(args, params)
View Source
init(args :: any(), params :: init_parameters()) :: {:ok, state} | {:stop, reason :: init_stop_reason()} when state: any()
Link to this callback
terminate(arg0, state)
View Source
terminate(:normal | :shutdown | {:shutdown, term()} | term(), state) :: any() when state: any()