This module exposes a type representing all of the messages that can be passed from the host library to the client library via postMessage.
This custom type is just a set of variants for each valid message the host library can send to the client application. See the individual type descriptions for more details on message structures.
encodeToClient : HostToClient -> Json.Encode.Value
Encodes a HostToClient message for delivery to the client application
decodeFromHost : Json.Decode.Decoder HostToClient
Decoder for parsing incoming messages from the host library to the client library. Bad input from postMessage will produce nice console errors that describe the exact failure.