slashmili / phoenix-socket / Phoenix.Message

This module provides Msg that the package handles


type Msg msg

This Msg should be used in user's main app

import Phoenix.Message as PhxMsg

type MyAppMsg =
    ..
    | PhoenixMsg (PhxMsg.Msg MyAppMsg)

mapAll : (Msg msg -> msg) -> Msg msg -> msg

none : Msg msg

toInternalMsg : Phoenix.Internal.Message.InternalMessage msg -> Msg msg

toExternalMsg : msg -> Msg msg

extractInternalMsg : Msg msg -> Phoenix.Internal.Message.InternalMessage msg

extractExternalMsg : Msg msg -> Maybe msg