Skip to content

Latest commit

 

History

History

echo

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

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'}