Fork me on GitHub
#yada
<
2016-03-15
>
malcolmsparks13:03:09

@nha. Not currently. You could return a record and provide your own marshalling. See body.clj for examples.

malcolmsparks13:03:41

Or return a map with a special entry indicating the event name

malcolmsparks13:03:26

I suggest you look at how yada currently does sse and providing an alternative. It's easier that you might think.

nha13:03:41

Right. The map is probably easier. I have websockets working now, still struggling a bit on SSE.

nha14:03:17

It seems to work with the url in the browser and it somehow connects using js/EventSource but I can't get any events printed yet.

nha14:03:56

I'd like to run the example there : https://github.com/juxt/yada/blob/master/dev/resources/static/js/examples.js#L54 but get an error with lein on the yada repository

nha14:03:29

(well a bit more time and it will work I'm sure - thanks for replying !)

malcolmsparks20:03:30

@nha Can you paste the error you get with lein? I'll take a look at it