MQTT v0.3.3 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 Sourceinit_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
    
    
          
  
  init(args, params)
View Sourceinit(args :: any(), params :: init_parameters()) :: {:ok, state} | {:stop, reason :: init_stop_reason()} when state: any()