eco-pro / 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

connect : Config msg -> Platform.Sub.Sub msg

Connect the socket

new : Model msg channelsModel

Initialise the model

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

Push an event to a channel

update : Config msg -> Socket msg -> (channelsModel -> List (Channel msg)) -> channelsModel -> Msg msg -> Model msg channelsModel -> ( Model msg channelsModel, Platform.Cmd.Cmd msg )

Update the model

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

Map the msg