yada

rlhk 2020-03-19T14:31:31.053200Z

Hi yada noob here, I’m trying to integrate sente with yada, Is there an example or guide defining sente’s required “chsk” route? Something like the following always gives 406:

...
["chsk"
 (resource
   {:methods
    {:get {:response #'ring-ajax-get-or-ws-handshake}
     :post {:response #'ring-ajax-post}}})]

2020-03-19T15:43:44.054Z

yada has native support for server-sent events, if that's what you're using sente for.

2020-03-19T15:44:30.054900Z

if you already depend on sente otherwise, though, then I'm not sure. probably best to look at integrating generic Ring handlers in yada, since sente publishes Ring handlers.

rlhk 2020-03-19T15:47:18.055800Z

Thanks. I’m aware of yada server-sent events. Looking at Sente for it’s full stack unified API.

2020-03-19T15:48:49.056700Z

makes sense

2020-03-19T15:49:39.057300Z

(I'm new to yada myself. the only part I know well is the auth system, since the new stuff is poorly documented and I dug into the code to grok it.)

rlhk 2020-03-19T15:51:33.058800Z

Yeah that’s too bad. I actually evaluated Yada 2 years ago. Looks like the doc stayed the same. Back then the edge examples are straight forward to run. But now not so obvious …

2020-03-19T16:44:59.059300Z

there have been some updates to the documentation, but they haven't been re-published on the main yada or edge doc sites.

2020-03-19T16:45:04.059500Z

which is almost worse.