Liking cljdoc? Tell your friends :D

clojupyter.kernel.transport


bind-parent-messageclj

(bind-parent-message transport parent-message)

bind-transportclj

(bind-transport message transport)

handler-whenclj

(handler-when pred handler)

parent-msgtype-predclj

(parent-msgtype-pred msgtype)

receive-reqclj

(receive-req transport)

receive-stdinclj

(receive-stdin transport)

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.
raw 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.
raw docstring

send-iopubclj

(send-iopub transport msgtype message)

send-reqclj

(send-req transport msgtype message)

send-stdinclj

(send-stdin transport msgtype message)

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.

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.
raw docstring

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

× close