chazsconi/elm-phoenix-ports/2.0.0

NOTE: the latest version is 2.1.0

Phoenix

Entrypoint for Phoenix

Definition

type alias Msg msg =
Msg msg

Internal messages

type alias Model msg channelsModel =
Model msg channelsModel

Internal model

Helpers

subscriptions : Config msg parentModel channelsModel -> Sub msg

Subscriptions for phoenix

new : Model msg channelsModel

Initialise the model

push : PushableConfig msg a -> Push msg -> Cmd msg

Push an event to a channel

Config msg parentModel channelsModel
-> Msg msg
-> parentModel
-> ( parentModel, Cmd msg )

Update the model

Config msg parentModel channelsModel
-> (msg -> parentModel -> ( parentModel, Cmd msg ))
-> msg
-> parentModel
-> ( parentModel, Cmd msg )

Updates the channels by plugging into the main update function

mapMsg : (a -> b) -> Msg a -> Msg b

Map the msg