Liking cljdoc? Tell your friends :D

lsp4clj.json-rpc

Models LSP JSON-RPC as core.async channels of messages (Clojure hashmaps).

https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#baseProtocol

Models LSP JSON-RPC as core.async channels of messages (Clojure hashmaps).

https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#baseProtocol
raw docstring

input-stream->input-chanclj

(input-stream->input-chan input)
(input-stream->input-chan input
                          {:keys [close? keyword-function]
                           :or {close? true
                                keyword-function csk/->kebab-case-keyword}})

Returns a channel which will yield parsed messages that have been read off the input. When the input is closed, closes the channel. By default when the channel closes, will close the input, but can be determined by close?.

Reads in a thread to avoid blocking a go block thread.

Returns a channel which will yield parsed messages that have been read off
the `input`. When the input is closed, closes the channel. By default when the
channel closes, will close the input, but can be determined by `close?`.

Reads in a thread to avoid blocking a go block thread.
sourceraw docstring

output-stream->output-chanclj

(output-stream->output-chan output)

Returns a channel which expects to have messages put on it. nil values are not allowed. Serializes and writes the messages to the output. When the channel is closed, closes the output.

Writes in a thread to avoid blocking a go block thread.

Returns a channel which expects to have messages put on it. nil values are
not allowed. Serializes and writes the messages to the output. When the
channel is closed, closes the output.

Writes in a thread to avoid blocking a go block thread.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close