MattCheely / tryframe-coordinator / Message.ClientToApp

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


type ClientToApp
    = Publish Message.PubSub.Publication

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

encodeToApp : ClientToApp -> Json.Encode.Value

Encodes a ClientToApp message for delivery to the client application