Liking cljdoc? Tell your friends :D

hive-tmux.observe.wire

Wire format shared by the JVM listener and the cljw hook client.

This namespace is loaded by ClojureWasm, which resolves only :git/url and :local/root coordinates. It therefore requires nothing outside clojure.core and clojure.edn, and must stay that way: a :mvn/version dependency reached from here is silently skipped by cljw and fails at call time rather than load time.

Wire format shared by the JVM listener and the cljw hook client.

This namespace is loaded by ClojureWasm, which resolves only `:git/url` and
`:local/root` coordinates. It therefore requires nothing outside
`clojure.core` and `clojure.edn`, and must stay that way: a `:mvn/version`
dependency reached from here is silently skipped by cljw and fails at call
time rather than load time.
raw docstring

args->eventclj/s

(args->event args now-ms tmux-env)

The event map for one hook firing.

ARGS is the hook client's *command-line-args* tail: hook name, then the tmux pane id. NOW-MS and TMUX-ENV are supplied by the caller so this stays pure and testable off the clock.

The event map for one hook firing.

ARGS is the hook client's `*command-line-args*` tail: hook name, then the
tmux pane id. NOW-MS and TMUX-ENV are supplied by the caller so this stays
pure and testable off the clock.
sourceraw docstring

classifyclj/s

(classify hook)

The hive-events id for tmux hook name HOOK, or unknown-event-id.

The hive-events id for tmux hook name HOOK, or `unknown-event-id`.
sourceraw docstring

decodeclj/s

(decode s)

The event carried by wire string S, or nil when S is not readable EDN.

edn/read-string never evaluates, so a malformed or hostile payload from the socket is a nil here rather than a code path.

The event carried by wire string S, or nil when S is not readable EDN.

`edn/read-string` never evaluates, so a malformed or hostile payload from
the socket is a nil here rather than a code path.
sourceraw docstring

encodeclj/s

(encode event)

EVENT as the wire string.

EVENT as the wire string.
sourceraw docstring

hook->event-idclj/s

tmux hook name -> the hive-events id an arrival dispatches.

The map is the open point: a newly observed hook is a new entry, not an edit to classify. Hooks absent here are classified :tmux/unknown-hook rather than guessed into an existing id.

tmux hook name -> the hive-events id an arrival dispatches.

The map is the open point: a newly observed hook is a new entry, not an edit
to `classify`. Hooks absent here are classified `:tmux/unknown-hook` rather
than guessed into an existing id.
sourceraw docstring

unknown-event-idclj/s

Classification of a hook name the table does not carry.

Classification of a hook name the table does not carry.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close