Fork me on GitHub
#luminus
<
2017-04-06
>
curlyfry11:04:29

@lucian303 What is wrapping the GET?

lucian30317:04:07

@curlyfry it's in a context inside a defroutes ... apparantely that should have been a defapi, it seems. thanks for your help. i didn't realize it until i went back to look more closely at the code

curlyfry17:04:59

@lucian303 :thumbsup: No problem

juliobarros18:04:14

Anyone know of a good example using luminus and jetty for server sent events? Not sure If I should follow the ring docs and return a three arg handler or the qubits/jet docs and return an async channel … neither seem to work for me and I’m not sure what I’m doing wrong. Thanks in advance.

yogthos19:04:00

@juliobarros haven't played with jet in a while, one thing to check might be the middleware you have around the route

yogthos19:04:10

I know for ws routes, stuff like restful middleware will conflict

yogthos19:04:24

you could try with immutant as well unless jetty is a requirement http://immutant.org/documentation/2.0.0-beta2/apidoc/immutant.web.sse.html

juliobarros20:04:19

Thanks @yogthos Jetty is a semi-requirement since client is used to it and managing self signed certs in their env. My thought was the middleware … but I haven’t gotten it to work yet even by stripping things out … will have to sleep on it. Thanks again.