Skip to content

Latest commit

 

History

History
20 lines (18 loc) · 529 Bytes

README.org

File metadata and controls

20 lines (18 loc) · 529 Bytes

Running

Start IEx session

iex --name "shell@127.0.0.1" --cookie "cookie"

Run application

sbt -DOtpConnection.trace=3 "run-main Echo -m \"hello jinterface\" -p \"mbox\" -s \"echo@127.0.0.1\" -c \"cookie\""

Send message to Scala from Elixir

iex> Kernel.send({:mbox, :"echo@127.0.0.1"}, {self(), {:hello}})

You should see the echo server closed after the message was received. Now read the response.

iex> flush
{:hello, 'and hello to you'}