Simple erlang chat for messages between nodes.
You need to install erlang.
Enter the name of your machine to the node in client.erl
file.
Server = {server_chat, 'server@{MACHINE_NAME}'},
Go to your path project, and start node server
$ erl -sname server
Compile files.
> c(server).
> c(client).
Start server
> server:start().
Open other terminal in your path project and join client.
$ erl -sname client
> C = client:join({NICK_NAME}).
To send message
> C ! {send, "Hello world"}.
- Vinícius Duarte Reis
- Teacher Rodrigo Freitas