algodynamics-iiith / core / Core.Analytics

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

generateJson : Maybe model -> action -> model -> Json.Encode.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 -> (Json.Encode.Value -> Platform.Cmd.Cmd msg) -> Platform.Cmd.Cmd msg

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