Fork me on GitHub
#hoplon
<
2015-12-21
>
laforge4904:12:25

Eyeballs wanted! I've implemented a very light-weight server notifications channel in hoplon using castra. See https://github.com/laforge49/simple-notifications

laforge4904:12:02

Currently it is integrated with a sample application.

laforge4904:12:47

The idea is that there is a single poll loop for moving all types of notifications, in batches, to the client. The client maps notification types to functions which process the notifications. When creating a notification, you must provide the client session id, the notification type and the value to be processed by the client-assigned function.

laforge4911:12:03

@micha: OOPS! Still need to add a bit of code to the client side to preserve order and avoid duplicates.

laforge4912:12:39

@micha Client side now sorts and filters incoming notifications. So again things are finished. Over to you then for review and repackaging. simple_smile

symbit18:12:40

I'd like to initiate a GET REST to an existing service from a Hoplon client to populate list, fields, etc.. Can't do Castra for now. I haven't seen any mention of this. Anybody done this?

alandipert18:12:09

@symbit: hoplon ships with jquery, and you can use the jquery stuff for doing ajax, jsonp, etc

alandipert18:12:26

then in the callback, reset some input cell

alandipert18:12:38

then build views/behaviors off that cell

micha22:12:34

pushed castra 3.0.0-alpha2

micha22:12:45

sorry, notifications were disabled, i reenabled them

laforge4923:12:05

I note that the template is still set for [hoplon/castra "3.0.0-SNAPSHOT"] rather than 3.0.0-alpha2.

micha23:12:12

i have to do some work on the template

laforge4923:12:53

Seems to be a lot on your plate.

micha23:12:13

daniel higgenbotham started some good castra docs

micha23:12:39

i'm going to extend those