(close! t)Closes a tunnel opened by connect!: sends bye and releases the socket.
The state map is immutable, so closing the same tunnel twice throws (the
underlying WebSocket is already closed).
Closes a tunnel opened by connect!: sends `bye` and releases the socket. The state map is immutable, so closing the same tunnel twice throws (the underlying WebSocket is already closed).
(connect! server local & {:keys [token subdomain resume routes]})Connects to the etunnel server exposing the local service at local ("127.0.0.1:3000" or a port number). Blocks until the server's welcome (15s timeout) and returns the state map with :url, :ws, :resume-token and :close! - a plain map, so (:url t) / (close! t), no deref.
Connects to the etunnel server exposing the local service at local
("127.0.0.1:3000" or a port number). Blocks until the server's welcome
(15s timeout) and returns the state map with :url, :ws, :resume-token and
:close! - a plain map, so (:url t) / (close! t), no deref.(etunnel-login! server)(etunnel-login! server open-browser timeout-secs)CLI loopback login. Binds a random 127.0.0.1 port, opens the browser (prints the URL when headless), waits for the one-time code (10-minute budget), exchanges it. open-browser is an optional (fn [url]).
CLI loopback login. Binds a random 127.0.0.1 port, opens the browser (prints the URL when headless), waits for the one-time code (10-minute budget), exchanges it. open-browser is an optional (fn [url]).
(login-post! url body)POST body (map) as JSON to url; returns the decoded JSON map.
POST body (map) as JSON to url; returns the decoded JSON map.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |