New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Server Sent Events support #315
Comments
Perhaps. I had added the special handling of See clojure-emacs/cider#853 (clojure-emacs/cider#853 (comment) in particular)
Depends on the use-cases we can think of. cider-nrepl can push "notification" messages, which are one such use-case. I haven't thought of anything else that might be useful, so suggestions are welcome. |
Yes. Relevant code is here. The existing sync client transparently wraps
Even nrepl itself will respond with messages subsequent to sending the The
I think the problem is the interface of the client. Using seqs as queues like this is so brittle – it's very easy for callers to accidentally cause deadlocks, and if a bug means the |
For IDEs/editors to be able to display whatever is written into
*out*
server side (ideally) there needs to be a way for the server to send messages to the clients which are unrelated to a specific input request message.Currently for this cider-nrepl provides things like
out-subscribe
op in the out middleware. This works for Cider because the elisp nrepl client listens to any response packet with a:out
key and adds it to the buffer, so Cider can "render printlns" not related to any message it sent.Now if you want to support this from a client using the official nrepl client you can't easily, because it only provides a way of reading responses for the messages you sent in a sync way.
So the question here are :
The text was updated successfully, but these errors were encountered: