Node
Processes
Connect and inspect BEAM nodes.
Distribution is off until you start with --sname / --name (or SELM_NODE / SELM_COOKIE). Then selm run / selm serve start a named node, and selm console opens a Selm REPL on that node (--erl for Erlang remsh).
Node.connect (Node.fromString "other@host")
Node.listUse Erpc to call functions on another node. Use Process.remoteSubject to send typed mailbox messages to a registered name there.
Types
Node
type Node = NodeA BEAM node name (foo@host).
Examples
Node.fromString "api@127.0.0.1" : NodeValues
self
self : NodeThis node.
Examples
Node.selflist
list : List NodeCurrently connected nodes (not including self).
Examples
Node.listconnect
connect : Node -> Result String NodeTry to connect to node. Needs distribution started on both sides and a matching cookie.
Examples
Node.connect (Node.fromString "other@host")disconnect
disconnect : Node -> BoolDisconnect from node.
Examples
Node.disconnect otherping
ping : Node -> BoolTrue when node answers a ping.
Examples
Node.ping otherfromString
fromString : String -> NodeParse a node name such as "counter@host".
Examples
Node.fromString "counter@host"toString
toString : Node -> StringRender a node name.
Examples
Node.toString node