[elm-discuss] Re: iframe performance

2016-07-27 Thread Nils Eriksson
It's pretty laggy -- 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/op

[elm-discuss] Re: Better abstraction for web-socket controller, help and discussion wanted

2016-07-21 Thread Nils Eriksson
What i would really want i something like this. JoinChannel -> let msgs = [ ( "new:event:notification", ReceiveNotification ) , ( "added:to:group:notification", ReceiveOtherthing ) ] channel =

Re: [elm-discuss] Better abstraction for web-socket controller, help and discussion wanted

2016-07-21 Thread Nils Eriksson
ctx msg model = > case msg of > LocalStuff -> > model ! [Cmd.map ctx.toParent localCmd] > > SomeMsg -> > model ![succeed ctx.someCmd] > > SomeOtherMsg -> > model ![succeed ctx.someOtherCmd] >

[elm-discuss] Better abstraction for web-socket controller, help and discussion wanted

2016-07-19 Thread Nils Eriksson
Hi i have a top level websocket controller that is supposed to take care of all websocket stuff and children make use of it with the help of *OutMsg*. This is my current solution but i feel like i can not abstract in a good way. What i really want would be for the children to be able to say wher