Liking cljdoc? Tell your friends :D

hive-vscode.bridge

Loopback :json vessel bridge: hive pushes native payloads to every connected VS Code window as Server-Sent Events; windows acknowledge with POST. Wire-compatible copy of hive-deepseek.bridge (hive-81), pending its extraction into hive-vessel.

Routes (every request carries ?token=): GET /vessel/events SSE stream (event: vessel); replays retained panels POST /vessel/reply one JSON reply GET /vessel/health JSON status Requests carrying an Origin header are refused: the client is an extension host, never a web page.

Loopback :json vessel bridge: hive pushes native payloads to every connected
VS Code window as Server-Sent Events; windows acknowledge with POST.
Wire-compatible copy of hive-deepseek.bridge (hive-81), pending its extraction
into hive-vessel.

Routes (every request carries ?token=):
  GET  /vessel/events   SSE stream (event: vessel); replays retained panels
  POST /vessel/reply    one JSON reply
  GET  /vessel/health   JSON status
Requests carrying an Origin header are refused: the client is an extension
host, never a web page.
raw docstring

broadcast!clj

(broadcast! {:keys [state]} message)

Send MESSAGE (JSON-able data) to every connected window and update retention. Returns {:delivered n :seq s}.

Send MESSAGE (JSON-able data) to every connected window and update retention.
Returns {:delivered n :seq s}.
sourceraw docstring

clientsclj

(clients {:keys [state]})
source

inboxclj

(inbox {:keys [state]})
source

new-tokenclj

(new-token)

32 hex chars from a SecureRandom.

32 hex chars from a SecureRandom.
sourceraw docstring

query-paramsclj

(query-params query)
source

retainclj

(retain retained message)

RETAINED (panel id -> message) after MESSAGE passes.

RETAINED (panel id -> message) after MESSAGE passes.
sourceraw docstring

retained-panelsclj

(retained-panels {:keys [state]})
source

sse-frameclj

(sse-frame seq message)

One SSE event carrying MESSAGE under sequence number SEQ.

One SSE event carrying MESSAGE under sequence number SEQ.
sourceraw docstring

start!clj

(start! {:keys [token port on-reply on-connect heartbeat-ms]
         :or {port 0 heartbeat-ms 15000}})

Start a bridge on loopback. opts: :token (required), :port (default 0), :on-reply (fn [reply-map]), :on-connect (fn [info]), :heartbeat-ms (default 15000).

Start a bridge on loopback. opts: :token (required), :port (default 0),
:on-reply (fn [reply-map]), :on-connect (fn [info]), :heartbeat-ms (default 15000).
sourceraw docstring

stop!clj

(stop! {:keys [server state pool ticker]})
source

token-ok?clj

(token-ok? expected presented)

Constant-time comparison of the presented token.

Constant-time comparison of the presented token.
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