Liking cljdoc? Tell your friends :D

etunnel


-mainclj

(-main & args)
source

close!clj

(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).
sourceraw docstring

connect!clj

(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.
sourceraw docstring

etunnel-login!clj

(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]).
sourceraw docstring

login-post!clj

(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.
sourceraw docstring

maxpclj

source

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