algodynamics-iiith/core/1.0.0

Core.Analytics

This module exposes the function which sends the messages and the new models.

generateJson : Maybe model -> action -> model -> Value

The function which takes model and action and encodes it into JSON

NOTE : This function uses Debug.toString and may prevent you from compiling using --optimize flag

sendOutLog : Maybe model -> action -> model -> (Value -> Cmd msg) -> Cmd msg

The command that takes the model, action and send it over the port "analytics"