This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-08-26
Channels
- # announcements (5)
- # architecture (1)
- # bangalore-clj (4)
- # beginners (45)
- # boot (4)
- # cider (19)
- # clojure (56)
- # clojure-austin (1)
- # clojure-canada (1)
- # clojure-finland (1)
- # clojure-russia (67)
- # clojure-uk (2)
- # clojurescript (57)
- # clojutre (1)
- # cursive (15)
- # datomic (3)
- # emacs (2)
- # figwheel-main (71)
- # fulcro (117)
- # hoplon (33)
- # java (5)
- # off-topic (52)
- # pedestal (7)
- # remote-jobs (1)
- # shadow-cljs (134)
- # slack-help (9)
- # specter (1)
- # tools-deps (17)
- # vim (2)
FYI - I just cut a release of clj-refactor.el and refactor-nrepl https://github.com/clojure-emacs/clj-refactor.el/blob/master/CHANGELOG.md#240-2018-08-26
I have a couple questions about nrepl.server, which I am embedding into my server-side app. 1) Is there a way to configure the initial namespace a client will be placed into (from the server?) 2) Is there a way to get notified when a nrepl client connects/disconnects? (e.g. some kind of hook?) It would be good for logging, etc.
> 1) Is there a way to configure the initial namespace a client will be placed into (from the server?)
> 2) Is there a way to get notified when a nrepl client connects/disconnects? (e.g. some kind of hook?) It would be good for logging, etc.
@bozhidar WRT notifications, is that something that could be done via middleware, or would need to be part of nrepl.server proper? For both "features", I feel they would be very helpful for embedded nrepl.server uses. When building a nrepl server into a app, one might well want to have a namespace prepared with easy access to the vars (eg the "system" var for component) and functions that would be helpful for maintenance, control, and status of the app in production. And it would be great to be able to log/monitor/alert on nrepl-client connections...
I'm not at all handy with elisp, but since this is Clojure, I have a fighting chance. Should I tale a look/stab at these? (in my non-copious free time 😞 )
> @bozhidar WRT notifications, is that something that could be done via middleware, or would need to be part of nrepl.server proper?
Right now all the messages you’d get from the server are the result of some request you sent to the server.