MattCheely/tryframe-coordinator/2.0.0

Rerouted (cache, verified). The original is gone. This copy comes from a Lamdera package cache made before it went. The Lamdera package server serves a copy recovered from a Lamdera package cache from 2021-02-13.

What we checked: Rebuilt from the unpacked sources in a Lamdera package cache (5 copies agree), which Elm only writes after the published SHA-1 checked out; elm.json is byte-identical to package.elm-lang.org's; the exposed modules match docs.json; the zip is our own, so its SHA-1 is not the published one.

The Lamdera compiler uses this copy and prints a one-line notice saying so. elm itself fails to download this version.

Details · package.elm-lang.org's zip: https://github.com/MattCheely/tryframe-coordinator/zipball/2.0.0/

HostProgram

The HostProgram module is the Elm code that backs the frame-router custom element used in host applications. It handles mapping application routes to clients displayed in a child frame as well as message validation and routing within the parent application.

Create a program

{ fromHost : (Value -> Msg) -> Sub Msg
, toHost : Value -> Cmd Msg
, toClient : Value -> Cmd Msg
}
-> Program Value Model Msg

Create a program to handle routing. Takes an input port to listen to messages on and and outputPort to deliver messages to the js embedder. port binding is handled in the custom frame-router element in LINK_TO_JS_LIB_HERE