Commmunicating Processes - The Receiver
1. What is the name of this node?
Node.self()
You will have to add the name of this node to the other notebook.
4. Identifying the Sender Node
# sender_node = ""
sender_node = :"livebook_7louvomv--3732fjg3@127.0.0.1"
5. Connecting to other node
Node.connect(sender_node)
6. Creating a process
pid = spawn(fn -> receive do msg -> IO.inspect(msg) end end)
7. Registering a process
Process.register(pid, :receiver)
8. Receiving a message
IO.puts "Waiting"