Formerly choonkeat/create-elm-server, choonkeat/elm-fullstack. Search finds this package by either name.
A set of required protocols.
- `updateFromServer` is called when `serverMsg` is received via websocket
- `clientMsgEncoder` encodes outgoing `clientMsg`, e.g. via `sendToServer`
- `serverMsgDecoder` decodes replies from Server
- `errorDecoder` decodes error replies from ServerExported type to enable apps to write their type signature of main, e.g.
main : Webapp.Client.Program Flags Model Msg
main =
webapp.elementReturns a Browser.element to use as main in your client app
and a sendToServer function to send clientMsg with
Returns a Browser.document to use as main in your client app
and a sendToServer function to send clientMsg with
Returns a Browser.application to use as main in your client app
and a sendToServer function to send clientMsg with
Hook up ports to use websockets for passing serverMsg and clientMsg