Liking cljdoc? Tell your friends :D

nrepl.transport


bencode

(bencode s)
(bencode in out & [s])

Returns a Transport implementation that serializes messages over the given Socket or InputStream/OutputStream using bencode.

Returns a Transport implementation that serializes messages
over the given Socket or InputStream/OutputStream using bencode.
sourceraw docstring

fn-transport

(fn-transport transport-read write)
(fn-transport transport-read write close)

Returns a Transport implementation that delegates its functionality to the 2 or 3 functions provided.

Returns a Transport implementation that delegates its functionality
to the 2 or 3 functions provided.
sourceraw docstring

piped-transports

(piped-transports)

Returns a pair of Transports that read from and write to each other.

Returns a pair of Transports that read from and write to each other.
sourceraw docstring

Transportprotocol

Defines the interface for a wire protocol implementation for use with nREPL.

Defines the interface for a wire protocol implementation for use
with nREPL.
recv
(recv this)
(recv this timeout)

Reads and returns the next message received. Will block. Should return nil the a message is not available after timeout ms or if the underlying channel has been closed.

Reads and returns the next message received.  Will block.
Should return nil the a message is not available after `timeout`
ms or if the underlying channel has been closed.

send
(send this msg)

Sends msg. Implementations should return the transport.

Sends msg. Implementations should return the transport.

sourceraw docstring

tty

(tty s)
(tty in out & [s])

Returns a Transport implementation suitable for serving an nREPL backend via simple in/out readers, as with a tty or telnet connection.

Returns a Transport implementation suitable for serving an nREPL backend
via simple in/out readers, as with a tty or telnet connection.
sourceraw docstring

tty-greeting

(tty-greeting transport)

A greeting fn usable with nrepl.server/start-server, meant to be used in conjunction with Transports returned by the tty function.

Usually, Clojure-aware client-side tooling would provide this upon connecting to the server, but telnet et al. isn't that.

A greeting fn usable with `nrepl.server/start-server`,
meant to be used in conjunction with Transports returned by the
`tty` function.

Usually, Clojure-aware client-side tooling would provide this upon connecting
to the server, but telnet et al. isn't that.
sourceraw docstring

uri-schememultimethod

Return the uri scheme associated with a transport var.

Return the uri scheme associated with a transport var.
sourceraw docstring

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

× close