concept message in category elm
appears as: messages, A message, The message, message, message

This is an excerpt from Manning's book Elm in Action.
A message is a value used to pass information from one part of the system to another.
Notice that it wants a Decoder msg and then returns an Attribute msg. That tells us we want it to decode not an integer, but a message. Ah! We have a message type named Msg. So how do we convert between the Decoder Int that we have and the Decoder Msg that on expects?
Instead, Elm talks to JavaScript the same way it talks to servers: by sending data out through a command, and receiving data in through a message. Figure 5.5 illustrates this.