observe_session_context/3

Refresh the context or request process for the given request or action

Called for every request that is not anonymous and before every MQTT relay from the client. Example: mod_development uses this to set flags in the process dictionary.

Type:

foldl

Return:

#context{}

#session_context{} properties:

  • request_type: http|mqtt

  • payload: union

Edit on GitHub