On Monday, January 2, 2017 at 11:02:51 PM UTC, Emmanuel Rosa wrote:
>
> Yes, it's message based. A Verticle receives messages from the Vert.x 
> event bus, does it's computation (producing side-effects if needed) and 
> then produces messages. Hmm... I'll certainly be pondering this idea :)
>

Are the input and output message types the same? I guess not, so your 
update function might look a bit different to what we are used to.

update : inmsg -> model -> (model, outmsg)

perhaps? 

Actually, I don't even know if a Verticle has a state at all? In which case 
you might get away with the JsonProgram type I defined ServerSide.Static:

type alias JsonProgram =
    Program Value Value Never

This takes some Json Value as input and produces a Json Value as output. If 
you can map your input and output messages to Json.Encoder.Value - it is 
quite easy to map a Java Bean to this once you know how!

-- 
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