chazsconi/elm-phoenix-ports/1.1.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

connect : Config msg -> Sub msg

Connect the socket

new : Model msg channelsModel

Initialise the model

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

Push an event to a channel

Config msg
-> Socket msg
-> (channelsModel -> List (Channel msg))
-> channelsModel
-> Msg msg
-> Model msg channelsModel
-> ( Model msg channelsModel, Cmd msg )

Update the model

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

Map the msg