Skip to content

Commit

Permalink
Jan 7, 2024, 10:10 AM
Browse files Browse the repository at this point in the history
  • Loading branch information
lynma01 committed Jan 7, 2024
1 parent a958846 commit e0e0d24
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions posts/shilling_for_elixir/shilling_for_elixir.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -204,3 +204,20 @@ end

## Elixir `Node`s

A `node` is a container for processes within a different server. One connects to `node`s as follows:

```{elixir}
IO.inspect node()
IO.inspect Node.get_cookie()
:ok
other_node = :"jsmq4atl-livebook_server@6aebae17b1d7"
other_cookie = :qHQdK1mN33nxFKM7YAZVBqO8NX4TXhS6
Node.set_cookie(other_node, other_cookie)
Node.connect(other_node)
# `other_node` is now the varaible which accesses the connection
```

0 comments on commit e0e0d24

Please sign in to comment.