Entrypoint for Phoenix
Internal.Types.Msg msg
Internal messages
Internal.Types.Model msg channelsModel
Internal model
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