This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-05-15
Channels
- # announcements (2)
- # babashka (137)
- # beginners (96)
- # calva (3)
- # cider (11)
- # clj-kondo (8)
- # cljs-dev (161)
- # cljsrn (21)
- # clojure (78)
- # clojure-europe (47)
- # clojure-france (1)
- # clojure-losangeles (1)
- # clojure-nl (4)
- # clojure-spec (24)
- # clojure-uk (9)
- # clojuredesign-podcast (4)
- # clojurescript (39)
- # conjure (2)
- # core-async (27)
- # cursive (36)
- # datomic (54)
- # emacs (6)
- # figwheel (9)
- # figwheel-main (46)
- # fulcro (25)
- # graalvm (8)
- # helix (30)
- # hoplon (6)
- # hugsql (3)
- # jobs (5)
- # leiningen (7)
- # luminus (12)
- # nrepl (20)
- # off-topic (20)
- # pedestal (16)
- # re-frame (14)
- # reagent (3)
- # reitit (3)
- # remote-jobs (5)
- # rum (25)
- # shadow-cljs (60)
- # spacemacs (10)
- # vim (2)
- # xtdb (36)
So, if I understand correctly you want to be able to echo some request params in the responses, right? I assume your client will processing those specially if they are present?
There’s nothing like this today, but I guess it’d be easy to add a middleware that just attaches certain request params to the responses.
@bozhidar Yes, exactly. Turns out it was pretty straightforward to build what I needed by just using op IDs to match requests and responses, and I can use that functionality for other things as well.
Is there an overview of bencode libraries for various languages that support streaming to build nREPL functionality?
I guess this page serves as such a resource: https://nrepl.org/nrepl/beyond_clojure.html
ah, btw @bozhidar - the nREPL server in babashka has now been broken out into a library: https://github.com/babashka/babashka.nrepl so the reference on that page could be changed to that
I think clojure-vim maintains it now, but was written by Chas/Stu, I can't remember now.
https://github.com/clojure-vim/nrepl-python-client/blob/master/nrepl/bencode.py bencode is inlined admittedly
it's nice how in almost any language the bencode impl ends up being around 200 lines