MattCheely / tryframe-coordinator / Message.HostToApp

This module exposes a type representing all of the messages that can be passed from the host library to a host application.


type HostToApp
    = Publish Message.PubSub.Publication
    | ToastRequest Message.Toast.Toast
    | NavRequest Message.Navigation.Navigation

This custom type is just a set of variants for each valid message the host library can send to the host application. See the individual type descriptions for more details on message structures.

encodeToApp : HostToApp -> Json.Encode.Value

Encodes a HostToApp message for delivery to the host application