On Tuesday, November 22, 2016 at 4:59:22 AM UTC, Gusztáv Szikszai wrote: > > I think you are looking for something like this: > https://github.com/gdotdesign/elm-ui/blob/master/source/Ui/Helpers/Emitter.elm > > It's a pure Elm pub / sub effects module (and possibly the most minimal > example of an effect module). >
If I used this in 2 Elm applications running at once, by which I mean 2 Elm.Mains on the same page, would this allow messages to flow between the 2 applications? Or would there be 2 effect manager instances created, which are isolated from each other? I suppose I should just try it and see what happens. The reason I ask is because of the Elm + Polymer experiments I did previoulsy, where I implemented a Polymer webcomponent in Elm then embedded the component in a containing Elm application. I did not find a way so far to allow some events from the inner component to be sent to the containing application and this could be a way of doing that. -- 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 elm-discuss+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.