What i would really want i something like this. 

JoinChannel ->
            let
                msgs =
                    [ ( "new:event:notification", ReceiveNotification )
                    , ( "added:to:group:notification", ReceiveOtherthing )
                    ]

                channel =
                    "notifications:" ++ user.id
            in
                ( model ! []
                , ToPhx <| Phx.JoinChannel ( msgs, channel )
                )

Where ReceiveNotification is a local child Msg.

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to