Fork me on GitHub
#hoplon
<
2015-12-28
>
mynomoto01:12:37

@laforge49: castra demos start with castra- right now, maybe a useful convention to keep (or we could come with another way to find those). So I think castra-notify, castra-simple-notify or castra-notify-random are all good.

laforge4901:12:35

I'll go with castra-notify-random then. Unless there is other input. simple_smile

symbit15:12:22

@laforge49 Cool Example. Is this sending updates from the server to the browser via Castra? Castra Push?

laforge4915:12:05

castra--there is no castra push

laforge4915:12:02

In discussions with @micha long poll appears to be better than wev sockets for clusters.

symbit15:12:15

Are random numbers are being generated on the server and sent to the client?

laforge4915:12:18

So at some point we need to enhance notify to use long poll.

laforge4915:12:38

just like in castra-simple.

symbit15:12:44

oh I see, what you mean. No async push, it's polling.

laforge4915:12:01

castra-simple2 uses notify which really is not the best use case.

laforge4915:12:29

I'm working on a version of castra-chat which will be a much better use case for notify.

symbit15:12:10

Are you going to add it to the hoplon examples?

laforge4915:12:15

But I'm really s l o w at this. New to clojurescript and do not know js. So give me a few days.

laforge4915:12:39

Plus, I need to rearchitect to fit with how notify works.

laforge4916:12:00

But it has not gotten too far! 😄

laforge4916:12:15

Later I expect to rename it notify/demos - castra-notify-chat.

raymcdermott20:12:56

I am reading the docs on dataflow in Castra … are there any demos of that entire flow?

raymcdermott20:12:05

Now that we have the datomic integration in place (trivial though it is) I was thinking of having a go at the whole thing … with some support! If something already exists that I can extend that would be great...

micha20:12:43

which part is missing from the existing demos?

raymcdermott20:12:43

I didn’t think there was an example of a record exchange

raymcdermott20:12:25

something which updates another thing on the server… but maybe I’m missing something!

micha20:12:53

there are a number of those in the chat demo

micha20:12:02

the login function for example

micha20:12:20

all the rpc functions with the bangs on them

raymcdermott20:12:29

ok, so I should be able to lift that … just to be sure, do you think it’s worth doing something aside from that with Datomic?

micha20:12:02

sure, it would be interesting to see an update, no?

micha20:12:12

or something?

raymcdermott20:12:58

ok, I’ll bash something together