chazsconi / elm-phoenix-ports / Phoenix

Entrypoint for Phoenix

Definition


type alias Msg msg =
Internal.Types.Msg msg

Internal messages


type alias Model msg channelsModel =
Internal.Types.Model msg channelsModel

Internal model

Helpers

subscriptions : Config msg parentModel channelsModel -> Platform.Sub.Sub msg

Subscriptions for phoenix

new : Model msg channelsModel

Initialise the model

push : Config.PushableConfig msg a -> Push msg -> Platform.Cmd.Cmd msg

Push an event to a channel

update : Config msg parentModel channelsModel -> Msg msg -> parentModel -> ( parentModel, Platform.Cmd.Cmd msg )

Update the model

updateWrapper : Config msg parentModel channelsModel -> (msg -> parentModel -> ( parentModel, Platform.Cmd.Cmd msg )) -> msg -> parentModel -> ( parentModel, Platform.Cmd.Cmd msg )

Updates the channels by plugging into the main update function

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

Map the msg