Liking cljdoc? Tell your friends :D

clojupyter.kernel.transport


bind-parent-messageclj

(bind-parent-message transport parent-message)
source

bind-transportclj

(bind-transport message transport)
source

handler-whenclj

(handler-when pred handler)
source

parent-msgtype-predclj

(parent-msgtype-pred msgtype)
source

receive-reqclj

(receive-req transport)
source

receive-stdinclj

(receive-stdin transport)
source

request-mapping-transportclj

(request-mapping-transport f)

Returns a transport-layer which transforms the request being handled. f must be a function taking a single argument: the ctx that caused the response.

Returns a [[transport-layer]] which transforms the request being
handled.  `f` must be a function taking a single argument: the ctx
that caused the response.
sourceraw docstring

response-mapping-transportclj

(response-mapping-transport f)

Returns a transport-layer which transforms the response being passed back. f must be a function taking 2 arguments, the ctx that caused the response, and the response being handed back, and must return the transformed response.

Returns a [[transport-layer]] which transforms the response being
passed back.  `f` must be a function taking 2 arguments, the ctx
that caused the response, and the response being handed back, and
must return the transformed response.
sourceraw docstring

send-iopubclj

(send-iopub transport msgtype message)
source

send-reqclj

(send-req transport msgtype message)
source

send-stdinclj

(send-stdin transport msgtype message)
source

Transportcljprotocol

receive*clj

(receive* _ socket)

Read full Jupyter message from socket. Not intended to be used directly, use receive-stdin or receive-req instead.

Read full Jupyter message from `socket`.  Not intended to be used directly,
use `receive-stdin` or `receive-req` instead.

send*clj

(send* _ socket msgtype message)

Send message of type msgtype on socket. Not intended to be used directly, use send-req, send-stdin, and send-iopub instead.

Send `message` of type `msgtype` on `socket`.  Not intended to be
used directly, use `send-req`, `send-stdin`, and `send-iopub`
instead.
source

transport-layerclj

(transport-layer {:keys [send-fn receive-fn message-fn]})

Defines middleware which transforms what is sent to the transport from lower layers. send-fn must be a function taking the 4 arguments: message, socket, msgtype, and response. receive-fn must be a function taking 2 arguments: message and socket. message-fn must be a function taking 1 argument: message and must return the ctx to be provided to the lower layer.

Defines middleware which transforms what is sent to the transport
from lower layers.  `send-fn` must be a function taking the 4
arguments: `message`, `socket`, `msgtype`, and `response`.
`receive-fn` must be a function taking 2 arguments: `message` and
`socket`. `message-fn` must be a function taking 1 argument:
`message` and must return the ctx to be provided to the lower
layer.
sourceraw docstring

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

× close