Liking cljdoc? Tell your friends :D

co.multiply.remontoire.node

The node role (§15): an ordinary instance that also attaches to a gateway, under a name, and serves what the gateway sends it. Its own endpoint stays as it was — when the gateway is the thing that is broken, the direct connection is how anyone finds out what this JVM is doing.

The node dials, and redials for ever: it is the one that comes and goes, and may not be addressable from the gateway at all. Each request envelope is handed to the transport's ordinary handlers as a synthetic exchange, whose every write travels back as a POST the gateway answers only once the bytes are written to the client.

Sessions are minted here, as on any instance, and claimed from the gateway before anyone is given them. Every live handle is reported at each attach and with every beat, which is all a restarted gateway needs to route again, and what settles a handle given out without the gateway's word — it was away, or did not say.

The node role (§15): an ordinary instance that also attaches to a
gateway, under a name, and serves what the gateway sends it. Its own
endpoint stays as it was — when the gateway is the thing that is
broken, the direct connection is how anyone finds out what this JVM is
doing.

The node dials, and redials for ever: it is the one that comes and
goes, and may not be addressable from the gateway at all. Each request
envelope is handed to the transport's ordinary handlers as a synthetic
exchange, whose every write travels back as a POST the gateway answers
only once the bytes are written to the client.

Sessions are minted here, as on any instance, and claimed from the
gateway before anyone is given them. Every live handle is reported at
each attach and with every beat, which is all a restarted gateway needs
to route again, and what settles a handle given out without the
gateway's word — it was away, or did not say.
raw docstring

attach!clj

(attach!)

Dial the gateway the node was started for, and keep attached. Returns at once. Once the port is open: what the gateway sends is served like anything that arrives there.

Dial the gateway the node was started for, and keep attached.
Returns at once. Once the port is open: what the gateway sends is
served like anything that arrives there.
sourceraw docstring

start!clj

(start! {:keys [attach name allowed-origins]})

Make this instance a node of the gateway at attach — its base address, http://host:port — as name. Returns what the transport is to be started with, {:fleet hooks}: the claim every session opened here is made on. Before the port opens, so that no request finds the endpoint an instance alone. Nothing is dialled yet (attach!): until it is, a session is opened as on a node whose gateway is away.

Make this instance a node of the gateway at `attach` — its base
address, `http://host:port` — as `name`. Returns what the transport is
to be started with, `{:fleet hooks}`: the claim every session opened
here is made on. Before the port opens, so that no request finds the
endpoint an instance alone. Nothing is dialled yet (`attach!`): until
it is, a session is opened as on a node whose gateway is away.
sourceraw docstring

statusclj

(status)

Whether this node is attached right now, and to what.

Whether this node is attached right now, and to what.
sourceraw docstring

stop!clj

(stop!)

Let go of the gateway, for good: the attach under way is abandoned, the body of one that was answered is closed, and nothing that arrives afterwards is served. What is being served is answered still, and the client is kept for that and no longer: it is shut with the last of those, at once when there is none. One dropped unshut keeps its threads and descriptors until it is collected. Whatever else would speak with it afterwards is refused by it, and takes that as it takes a gateway that did not answer.

A client nothing was said with is closed, which waits on nothing — a start that fails at its port is such a node. One that dialled is shut without waiting for what it has under way.

Let go of the gateway, for good: the attach under way is abandoned, the
body of one that was answered is closed, and nothing that arrives
afterwards is served. What is being served is answered still, and the
client is kept for that and no longer: it is shut with the last of
those, at once when there is none. One dropped unshut keeps its threads
and descriptors until it is collected. Whatever else would speak with
it afterwards is refused by it, and takes that as it takes a gateway
that did not answer.

A client nothing was said with is closed, which waits on nothing — a
start that fails at its port is such a node. One that dialled is
shut without waiting for what it has under way.
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